|
@ -9,9 +9,11 @@ const char PLAYER_X = 'X'; |
|
|
const char PLAYER_O = 'O'; |
|
|
const char PLAYER_O = 'O'; |
|
|
|
|
|
|
|
|
void reset_board(){ |
|
|
void reset_board(){ |
|
|
board[3][3] = {{'1', '2', '3'}, |
|
|
|
|
|
{'4', '5', '6'}, |
|
|
|
|
|
{'7', '8', '9'}}; |
|
|
|
|
|
|
|
|
for(int i = 0; i < BOARD_SIZE; i++){ |
|
|
|
|
|
for(int j = 0; j < BOARD_SIZE; y++){ |
|
|
|
|
|
board[i][j] = j * BOARD_SIZE + i + 1; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Funktionen zur Anzeige des Spielbretts |
|
|
// Funktionen zur Anzeige des Spielbretts |
|
|