diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-02-08 19:50:21 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-02-08 19:50:21 +0100 |
| commit | 923bbed6f93665aa631a81fafbc2e0614a620db9 (patch) | |
| tree | 2223a4aca2503ea030a8f6ba951b7828582ec495 /src/main.cpp | |
| parent | ad9b6389be40ef7281850c80879f4bb27fd9d059 (diff) | |
| parent | 80553898f80858e6e66613c889ed9f19327a1cf6 (diff) | |
Merge branch 'main' of ssh://100.95.135.112/srv/git/minesweeper
This merge is necessary because the repository has been moved to other
site and in the computer it has been not synced with the new server yet.
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; |
