From 7af65b97ce7af7b8eeba5886d98b94afc1446151 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Thu, 8 Feb 2024 12:46:23 +0100 Subject: [PATCH] refactoring : Genauer defefinierter bezeichner(eindeutiger bezeichner) --- .../out/c/duellist-spielesammlung-projekt.o | Bin 13908 -> 13924 bytes .../test_duellist_spielesammlung_projekt.out | Bin 102734 -> 102734 bytes .../test_duellist_spielesammlung_projekt.pass | 118 ------------------ src/main/duellist-spielesammlung-projekt.c | 8 +- 4 files changed, 5 insertions(+), 121 deletions(-) delete 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 cbb206443264b434d714a98ad06a98a3eddd222d..4c746690c278380c87d9d4cc48156adc053b9453 100644 GIT binary patch delta 2486 zcmZuze{2**6rQ=>!4+HRU9Z2OrBmQIj+9D^CFUf6*g_yEHV{-&gzMe3yRzLadwU!- zF>4SF#DJcoq6SScmXH83@dzkJBq?Yx@{brH0mVfAXbg#x7{vsPZ)SGq#CS=Y?|tvR z@BNtBz5C9%X;iMo4Y3@NQPbiO`V*LVuJ#$Gd{1)su#&5DN-S@G4&g z=Quvz-+Oak&zvAo7W=*?iQj!aLU1c+xRJ8J&keV4I>AKF7X}uEDohUF{||QrqLMq65?<>vc-9 z@VCkyKb6Y?ra6)u(Wx;=4UVa9rcgW!9hKt;Y^pmlbp3xr^X5nzbWAd6*~4Ur7REo+ z45tI~d(!_>CYqaexHu(4wncg69hOO!#IfuDSk*AlrsrG5qr=whTsS?8tm8L%X3&?-6?#a6s})UF?kvO z8}!exzNT7txxj(q)<_6A?3?{j+bWdJr=uCm$Pb%kW<#Wz$FK3yjR=2A@H%`2u34a{ zMdotzNzcrp+CiJrExg%5xH(ybyYcp^2(51CVTaDcgAx-0-ChQY!8669c&CA4FsdWG zm`$5r=OzU8S2aRAMeZZex6DnbTv6ONgHlT71&ZOA7}Phbxbi%&j1zsXY>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QgFw58rX%*wq9M}b{VxR8Lo z7Q1*@I3lqSZ=^QmOvf-Sgb#~d8f@l|<89IOu9g$vv>u$+fDh}d;Pr)CZ^6t4m|^sY zphoK*KhTwo!loRhXIk3v%HqwI7kzUl;UX{nW{YEsmMb*|QdC?yTse}X?=HEDj}|A| zKdNYD*{Hj=>Sd*8t}k`QuYw~1GzIH=iw?vV<6fGJEySPEL-2PSJsw-A)Ya0f*Cs zOLiF)YczyzNp@SZdGPR8A>_hzBS>M>3`(RdldMa!ji4X}GIq<^5jlHEvVvrvNOnrH zi;{f<$`$3VNqAERR>0#F2&llhZSVsZkRz8c#;mR W+N1n{^W7mjv+6l~y|{ICL&e`zAK0h> diff --git a/build/test/out/test_duellist_spielesammlung_projekt.out b/build/test/out/test_duellist_spielesammlung_projekt.out index 824d61c2e194704a73a2b781089a3f1d71fcd848..3fd72df6f77208fbfe3086e818e650b55dde021e 100644 GIT binary patch delta 6198 zcmZu#3sh9~)<1igfx$pPkcWT_F9lJ8EBF8(gD_&rGevorJV$3_7{*};BNJUng)9`> zH~*-Zqh)#3y4koyKW{gREd6d4C7*At@4LG0l-{JW@|E-L|Ct#ct$Wrw=lu6?KYn}f z|6>k(vCs93eXbp^NIX91+>#?H4(Po67Hq~%kP8EruV6JmAI^4p2)&prT?*B>MLGkL z@FQs;1mk6CB7BD)vP{ptYX#vmX_P>hbuO04LZJaS$bz8+cgiNhdw4tLKl#@;DYpm~|OF+Qut+ z6mM(VQi^TA=-VVAl!PM+`Wzo zb3E%OP>dD4gFikicGJkmH&GcBF!`(%{s1m8#e^CO$z3EihB1C zQC;koV$|PO;FA;lCx1h96i5tvj>f}bPuVqM*b}Impl!+}r1?eph9+NnhHdbqwE1kz z;%?OhjmV!@L19IvK(1d*`Z2@xN$q-(_Ff6;MpmOhzq!dr0h5a@gSq+~=oA6O;S5OD7IU+E>r4+39uMT^! z!*}K^gK(72jhFm18Bv^tU z&utmoKFe;qo8H!5OToMX7yKYC30}gV(&Aw`hA+@Z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Ll%>xm8UI+xv-G$SPV(Y?fv2_ zeHbg~7cq>Gc3MX+6o(>;mjjKWJKdH*0{E(WY>ViNnnJO7K3z|}Kf_T^l-~T59`-;x zUuGa?72jweT^Bz`l1yphj}4Fr_j$rn+9Ir9A`|_n;l06&s&%HN<&~TG%B8d&_58Yc zY~{Jjs6%)9Ija0=&GVN@LG!4v{=SlC)e_bZ6kJK`l8+Edu|6|f?dWlUH zWfd!QRoD2DG742MDMTa0FJLe&0S@JGf-?HNoEYo*4SM+2_Czc)(ced8YUN=@>UlhW z(MZHG+FgZ%uYh7MkR#s8M3VIMh6RM&)3 zRnneiCca=fyh~fyr%FmENj%#5+$vZNclfy~BEQB%s|mc%)2nHMG<;<>CDzXWTYzi% OA3{3cnQMYSgZ~dM*)`$- diff --git a/build/test/results/test_duellist_spielesammlung_projekt.pass b/build/test/results/test_duellist_spielesammlung_projekt.pass deleted file mode 100644 index 43b42bd..0000000 --- a/build/test/results/test_duellist_spielesammlung_projekt.pass +++ /dev/null @@ -1,118 +0,0 @@ ---- -:source: - :path: src/test - :file: test_duellist_spielesammlung_projekt.c -:successes: -- :test: test_coinflip_x_starts - :line: 11 - :message: '' - :unity_test_time: 0 -- :test: test_coinflip_o_starts - :line: 23 - :message: '' - :unity_test_time: 0 -- :test: test_vertical_win - :line: 35 - :message: '' - :unity_test_time: 0 -- :test: test_horizontal_win - :line: 49 - :message: '' - :unity_test_time: 0 -- :test: test_diagonal_win - :line: 62 - :message: '' - :unity_test_time: 0 -- :test: test_valid_move_and_switch - :line: 76 - :message: '' - :unity_test_time: 0 -- :test: test_invalid_input - :line: 92 - :message: '' - :unity_test_time: 0 -- :test: test_valid_input - :line: 106 - :message: '' - :unity_test_time: 0 -- :test: test_invalid_input_negative_row - :line: 121 - :message: '' - :unity_test_time: 0 -- :test: test_invalid_input_overflow_column - :line: 135 - :message: '' - :unity_test_time: 0 -- :test: test_NumberOfMoves_returns_correct_number_of_moves - :line: 149 - :message: '' - :unity_test_time: 0 -- :test: test_BoardFull_returns_false_when_board_is_not_full - :line: 163 - :message: '' - :unity_test_time: 0 -- :test: test_BoardFull_returns_true_when_board_is_full - :line: 176 - :message: '' - :unity_test_time: 0 -- :test: test_CurrentPlayer_returns_correct_player - :line: 189 - :message: '' - :unity_test_time: 0 -- :test: test_FieldEmpty_returns_true_for_empty_field - :line: 202 - :message: '' - :unity_test_time: 0 -- :test: test_FieldEmpty_returns_false_for_nonempty_field - :line: 215 - :message: '' - :unity_test_time: 0 -- :test: test_calculate_mines_HeightWidthOne - :line: 228 - :message: '' - :unity_test_time: 0 -- :test: test_calculate_mines_WidthOne - :line: 242 - :message: '' - :unity_test_time: 0 -- :test: test_calculate_mines_NormalCase - :line: 256 - :message: '' - :unity_test_time: 0 -- :test: test_end_check_AllUncovered_NoMines - :line: 270 - :message: '' - :unity_test_time: 0 -- :test: test_create_minefield_ValidDimensions - :line: 289 - :message: '' - :unity_test_time: 0 -- :test: test_calculate_mines_HeightOne - :line: 314 - :message: '' - :unity_test_time: 0 -- :test: test_create_minefield_NegativeDimensions - :line: 328 - :message: '' - :unity_test_time: 0 -- :test: test_calculate_mines_HeightZero - :line: 342 - :message: '' - :unity_test_time: 0 -- :test: test_calculate_mines_HeightWidthNumber - :line: 356 - :message: '' - :unity_test_time: 0 -- :test: test_calculate_mines_HeightWidthAgan - :line: 370 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 26 - :passed: 26 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.05033430000003136 diff --git a/src/main/duellist-spielesammlung-projekt.c b/src/main/duellist-spielesammlung-projekt.c index bac07f6..fd1ccd8 100644 --- a/src/main/duellist-spielesammlung-projekt.c +++ b/src/main/duellist-spielesammlung-projekt.c @@ -8,6 +8,7 @@ #define unknown_character 'x' #define mine_character '@' + int checkAge(int age) { return age >= MIN_AGE ? 1 : 0; } @@ -138,16 +139,17 @@ GameResult checkGameResult(const TicTacToeGame* game) { return draw ? GAME_DRAW : SUCCESS; } + //Nach eingabe zurberechnung der Minen anzahl int calculate_mines(int height, int width) { - int num_mines; + int number_mines; if (height <= 1 || width <= 1) { return 0; } else { - num_mines = ((height * width) / 4); + number_mines = ((height * width) / 4); } - return num_mines; + return number_mines; } //Zum erstellen des Spielfeldes