|
@ -20,4 +20,26 @@ typedef enum { |
|
|
typedef struct { |
|
|
typedef struct { |
|
|
Player board[3][3]; // Spielfeld |
|
|
Player board[3][3]; // Spielfeld |
|
|
Player currentPlayer; // Aktueller Spieler |
|
|
Player currentPlayer; // Aktueller Spieler |
|
|
} TicTacToeGame; |
|
|
|
|
|
|
|
|
} TicTacToeGame; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GameResult makeMove(TicTacToeGame* game, int row, int col); |
|
|
|
|
|
GameResult checkGameResult(const TicTacToeGame* game); |
|
|
|
|
|
GameResult initializeGame(TicTacToeGame* game); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|