diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index d4dab15..afea063 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,7 +7,7 @@ int main(){ game.inGame = false; int choice; - cout << "Welcome to minesweeper 0.1.0\n"; + cout << "Welcome to minesweeper v0.2.0\n"; cout << "\n"; cout << "Select difficulty:\n" "1. Easy\n" @@ -31,11 +31,13 @@ int main(){ game.inGame = true; } + srand(time(nullptr)); game.initBoard(); while(game.inGame){ game.displayBoard(); game.input(); + game.updateBoard(); } return 0; |
