From 50220fcc96032a04350affde6c57954c11d8b3ef Mon Sep 17 00:00:00 2001 From: Daniel M Date: Fri, 9 Feb 2024 14:03:08 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Header=20hat=20einen=20besseren?= =?UTF-8?q?=20=C3=BCberblick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../out/c/duellist-spielesammlung-projekt.o | Bin 43917 -> 43917 bytes src/main/duellist-spielesammlung-projekt.h | 16 ++++------------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/build/test/out/c/duellist-spielesammlung-projekt.o b/build/test/out/c/duellist-spielesammlung-projekt.o index fcc815ae84c0da44c7527a03b952a19df8692e5b..31ee753a0f134e6a9b77965156d22cfe051ff885 100644 GIT binary patch delta 622 zcmeCZ&eVIIX@dskcQTfRFfN^J5GEP4lw}Gd0|V1U z2EjrG1_nkLmqjQ9#9hYn4@fahOcCM&ahF56IYPo9?g}V3gFzrEwJ0?+Im3j3k#q9w zFiBfZRAXUWsIgqA#&V+?%QN|7m`F}8Gsx;XMFxh6tU$ZwXaY&WY>>6N%qUKVaiM1C zf%UFrBAjf*z<6n7!x+nU;d6606iasLjV8( delta 621 zcmeCZ&eVIIX@dMs3D}lQS9B87(GH1d=hEcQTfRFs`0#5GEP4nq>+j0|V1U z2EjrG1_nkLmqjQ9#9hPk4@fahOcCM&ao0k*IYPo9?m8$pgFzrEwJ0?+Im3j3k$>{+ zFiBf}RAXUWsIda5#tNbuD>V6Im`F}BGsx;XMFxh6tU$ZwXaY&WY>>6Z%qUKVaiM0H zfc3$hTngnvom>XxBAjf*z<7OfVYp<_btV*JVO*%OH<(aD;wF>}HTD*ii!j!Zfzf*M zop8x;YgA)lT&S@&sK(l&8f%APY+7PYadHL&qv2$q2q|+zs5}Ea0uoD$%M&wl7#KCc zQintt7~DZ&HYbaXfkC(mA~kt#grt@N6Du&{OMwb}!3x#_6+psQ0oBC{n;%5f^D@S5 fPDtxyWoG8I+59T|0LSJvC7+BKlQz#^{*D;{<~xNn diff --git a/src/main/duellist-spielesammlung-projekt.h b/src/main/duellist-spielesammlung-projekt.h index a161050..acac107 100644 --- a/src/main/duellist-spielesammlung-projekt.h +++ b/src/main/duellist-spielesammlung-projekt.h @@ -3,7 +3,10 @@ #define MIN_AGE 12 - +#define max_height 10 +#define max_width 10 +#define unknown_character 'x' +#define mine_character '@' typedef enum { SUCCESS, @@ -19,13 +22,11 @@ typedef enum { PLAYER_O } Player; - typedef struct { Player board[3][3]; // Spielfeld Player currentPlayer; // Aktueller Spieler } TicTacToeGame; - GameResult makeMove(TicTacToeGame* game, int row, int col); GameResult checkGameResult(const TicTacToeGame* game); GameResult initializeGame(TicTacToeGame* game); @@ -38,15 +39,6 @@ int FieldEmpty(const TicTacToeGame* game, int row, int col); int decideGameType(); Player playRockPaperScissors(); -#include -#include -#include - -#define max_height 10 -#define max_width 10 -#define unknown_character 'x' -#define mine_character '@' - int end_check(char** minefield, char** mines, int height, int width); int field_check(char** minefield, char** mines, int height, int width, int row, int column); void show_minefield(char** minefield, int height, int width);