|
|
@ -133,6 +133,16 @@ void verteile_minen(char** mienen, int hoehe, int breite, int anzahl_minen) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Diagonalen Sieg prüfen |
|
|
|
if ((game->board[0][0] == game->board[1][1] && game->board[1][1] == game->board[2][2] && game->board[0][0] != EMPTY) || |
|
|
|
(game->board[0][2] == game->board[1][1] && game->board[1][1] == game->board[2][0] && game->board[0][2] != EMPTY)) { |
|
|
|
return GAME_WIN; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int minesweeper() { |
|
|
|
int hoehe, breite; |
|
|
|
xxxxxxxxxx