summaryrefslogtreecommitdiff
path: root/src/Game.hpp
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-02-09 15:15:40 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-02-09 15:15:40 +0100
commit57eb7d9e23c67547cf797a45875c96c554b74275 (patch)
treeb467bee336807219d5265c23866a55c75fbca41e /src/Game.hpp
parent59c0c07568d607e69c437853c472379741f7aa98 (diff)
Fixes game winmentv1.0.0
Diffstat (limited to 'src/Game.hpp')
-rw-r--r--src/Game.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Game.hpp b/src/Game.hpp
index 749f75d..a723f5d 100644
--- a/src/Game.hpp
+++ b/src/Game.hpp
@@ -10,17 +10,18 @@ private:
int boardWidth;
int boardHeight;
- std::string msg;
-
bool bombMap[MAX_H][MAX_W];
int tileMap[MAX_H][MAX_W];
bool revealedMap[MAX_H][MAX_W];
bool flagMap[MAX_H][MAX_W];
int mines;
-
+
public:
bool inGame;
+ bool hasWon();
+
+ std::string msg;
int editDiff();
void initDiff(int diff);