| 37 | int unflaggedMines = -1; |
| 38 | |
| 39 | void GameOver(){ |
| 40 | for(int i = 0; i < mapSize.y; i++){ |
| 41 | for(int j = 0; j < mapSize.x; j++){ |
| 42 | Tile& tile = tiles[i][j]; |
| 43 | |
| 44 | tile.hidden = false; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | window->Paint(); |
| 49 | Lemon::GUI::DisplayMessageBox("Minesweeper", "Game Over!"); |
| 50 | |
| 51 | Generate(difficulty); |
| 52 | } |
| 53 | |
| 54 | void CheckWin(){ |
| 55 | unflaggedMines = 0; |
nothing calls this directly
no test coverage detected