From b8387c6e9bb898c7565ad2b7af01c7a4de5a53b9 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Thu, 8 Feb 2024 12:49:44 +0100 Subject: [PATCH] =?UTF-8?q?refactoring=20:=20Makierte=20Kommetar=20begr?= =?UTF-8?q?=C3=A4zung=20zwischen=20dem=20Spiel=20Code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../out/c/duellist-spielesammlung-projekt.o | Bin 13924 -> 13950 bytes .../test_duellist_spielesammlung_projekt.out | Bin 102734 -> 102734 bytes .../test_duellist_spielesammlung_projekt.pass | 118 ++++++++++++++++++ src/main/duellist-spielesammlung-projekt.c | 2 + 4 files changed, 120 insertions(+) create mode 100644 build/test/results/test_duellist_spielesammlung_projekt.pass diff --git a/build/test/out/c/duellist-spielesammlung-projekt.o b/build/test/out/c/duellist-spielesammlung-projekt.o index 4c746690c278380c87d9d4cc48156adc053b9453..c49dce172f7455af5a55a0aeb2d259bc43b5777c 100644 GIT binary patch delta 2940 zcmY*bZERCj7(S0loWvowmzCL14dYoPdIMVTuog&! z#Q28@JbJ~Mh9~5iZE;~zIO=?vRiJ4zJ;gy zkh(#n{-sj47^&_?INRamJv}GOC)|FJ&74F}TO~ONvud4~TG!6bfn6aCy_36sz*sin zpQc~P&5owiP}f~i8M!X2JcH;qu8eYBhO&DWWFse0u3M5C%&Mn`t>ez&*hI-i79uIY~ zSx;R>F%MgS??d>~bhX%et$padfHhS+XhEjEdXcGM98a(8=NcQSIf+L|P3=B9zduY& zW@_DO?Mr6feK=)y^BaY<7TR7lwG~*RU*wyyv#LQ&UbcRf4h z^O%YX*%eT(g`-(FcW%Y`HWQ|fF85dMs1W4)~RNP_3{VTb0>=ctd8@L)s3U+4P^~b4x z2?HuaeJhy(S_Cwo+*h0nCz|v&DD=ES8j#F*PjR0p?wsO&Qpkd{LFzexkgKCyvm#e1 zG^EfgG7xdc6!)RxtT-#AU@4GnrdDx&g*1g;SLhVbJehnk^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)B42rG5c!k^qNTCj28=ebl z6I7UKJRic@jIZcxmGQRE!KWJMeC6C@T=)5Sv0*E#nNc9Bn27IWe0icw?zIJ*p`R-} z;v>8~QR0_mvb(I(l0SsUQtETbI9Ps^=OpJ(+08BCaPsqq;#QAWco$5tJ!fgn&s={l z&x#FJ2I_UR<#}VUdJ3;M4psa3TgH3%Z8mJ zmF^$%-XX6Ow~Q*<4Wv}26W0Kw`XR1I6&E7zARey`aw5ldf@gtL;AcQ;@Hlaofy5Q! zV80M|o#Jj0cbnqMu(6b01(4EPN8A%YqG;p5G^hRz(c=_)gSeYOD)n9BECngaRX{4u z8X(n&oy6(H{Z8DU#5LOGSSvQroaBPq*SJ1{9#x{OTy`GF36#Yy5_gNZ0$g*-TS2IU zPyk4&9477!;>L*kn$R7EbfnA0Euscj1F0ms$JZ(8nIBs%$mf)0&*Mc8>{Nwe8`B@@5>Z#!wU`Gu$f;;h8v19{sZq**aH9n diff --git a/build/test/out/test_duellist_spielesammlung_projekt.out b/build/test/out/test_duellist_spielesammlung_projekt.out index 3fd72df6f77208fbfe3086e818e650b55dde021e..5b310facdbf1861c2ff9f180203e4990471364d3 100644 GIT binary patch delta 6013 zcmZu#2~<>9(!SMnLyMpwTeGz63Ze)BBC=>Bv@0MesNjMKt=+PU&4@7y93)YRzhFh5 z3o6E#F^UG4`c2gwfBKfeU3yco)~me4zw)$fo+TD#jXqks3QP8QYuG ztYYh>Ax6V2@_mgaS{#X{r5(zUdrc0BDinF*FvvY{~ zc8~Gmbh6~2&OT^BAlcXZg&2?E`}V2u0Kc=Zfm4|6pona!6w}z(PD)>rl3N>bkf#}! zum6IB;TEtQ1&3&=^rC|=1mGQqO1O-(H;6FVU!ETK8ybklw)yosq80OUi3d3K$3L(^c0b}=9QuyHGEXldrhdAc( z-T~qCO#NcU-%#c4HT=eW5g}D({3ku%kGA@rHCt-9r4!e9Hw}y6c4B?{2Ua(;r^xCs zA4mIm4u3>)L?qJQqUT=PZ_E~v_9B-0=xPfHX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Z^UfeVjiL{paZkt7XJO&f zXfR^q(;4(x*z>el^l%X>p6Or?ZhN*FdQtW~LH3M(fAp0qZXf;e!BZgGT=zU1Kxh8s z#bSk=eG>VPq2IdUBi$t~>$j+|ZS}P?fl%fry-7a|BCeg|^Cp28zdjyz!LV-GtI!A{ zt+u;;B0O+`UVi&z=mmZEqA75cen;K+OoJdADyP9-uZEA4Y3pzy#KNA_wA9s9y#eG? zLhcPgt`M?THQ48SLZ+q;(G44A95*Lpupkoha0v1?At{-IeLf<@ zI0U&#Nc#}vF(HSCAaV~{&>_gUD1y!pfl>&$>_i;d_45DBr4@O^ugZg!pyF@k!7fo> zCSN@d!dSbTwXM0r7+U%3^B^5eeCT`#kL=BJL|#%-QdLG*bO_xcwq+2mHIfw|sdu5@(_EcQ!6dYp(uCytNFhjcF!{omQp0806$ ze9A9|_bGsM(K9)}qyWM|&o>spRY^w?x$}?${(NTvWbi%NAcn8`3x!k)9UosrGfYLc z)J=RR8+sPohMv58F@!@LKYlfo-8a(Mv{f+@?y06H81-h+gYJ9BJh8 zCyGg>S8G%0<^2}I%BtKNhaa11qM4qn1|waBlnz186Y|~=o`G zAd#9K)I|C-Cg&k`^W?bo0>Unbl4S;shEgl#e_%6?@yca1{~DjN42mI_-@gnJz1oM! zNab|8`0tsUf4AFmhzBpJQ=mj&XC!YfgwLp??b^d*C9!h+#Y(sUQht|~!1ws8S_l_C zuH~O=AptCW{0iFAea?EYO3(DBnhmg))M|_?s`Q)qH7jU;6!CXivyIPN3E^Jf4T;X* zhxRDHl?*V2Ke3YJIQ|i9rtnERD2_Zk#QQmU#|_9BYjidB8bdGtzK+t?3kFss_W1eI zn(= MIN_AGE ? 1 : 0; @@ -139,6 +140,7 @@ GameResult checkGameResult(const TicTacToeGame* game) { return draw ? GAME_DRAW : SUCCESS; } +/*--------------------Minsweeper--------------------*/ //Nach eingabe zurberechnung der Minen anzahl int calculate_mines(int height, int width) {