MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / GameOver

Method GameOver

Applications/Minesweeper/main.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

DisplayMessageBoxFunction · 0.85
GenerateFunction · 0.85
PaintMethod · 0.45

Tested by

no test coverage detected