|
@ -89,7 +89,22 @@ GameResult checkGameResult(const TicTacToeGame* game) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Unentschieden Prüfen |
|
|
|
|
|
int draw = 1; |
|
|
|
|
|
for (int i = 0; i < 3; ++i) { |
|
|
|
|
|
for (int j = 0; j < 3; ++j) { |
|
|
|
|
|
if (game->board[i][j] == EMPTY) { |
|
|
|
|
|
draw = 0; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (!draw) { |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return draw ? GAME_DRAW : SUCCESS; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int berechneMinen(int hoehe, int breite) { |
|
|
int berechneMinen(int hoehe, int breite) { |
|
|