From c72d094dec277fe99089422c1e7fd990e5e086da Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Mon, 9 Feb 2026 14:21:23 +0100 Subject: Fixed flags displaying and revealement logic for flags handling --- src/Game.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Game.hpp') diff --git a/src/Game.hpp b/src/Game.hpp index 599259f..15eadd3 100644 --- a/src/Game.hpp +++ b/src/Game.hpp @@ -1,3 +1,5 @@ +#include + #pragma once class Game { @@ -8,6 +10,8 @@ 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]; @@ -23,7 +27,10 @@ public: void initBoard(); void updateBoard(); void displayBoard(); + int bombCheck(int x, int y); + + void revealTile(int x, int y); void input(); }; -- cgit v1.2.3