From 67f48505819520f057ec933721a52a85868ee88f Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Sun, 25 Jan 2026 15:09:34 +0100 Subject: experimental builds and header fix --- src/game/globals.hpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/globals.hpp b/src/game/globals.hpp index 6dfd429..2616013 100644 --- a/src/game/globals.hpp +++ b/src/game/globals.hpp @@ -1,7 +1,25 @@ #ifndef GAME_HPP #define GAME_HPP -extern bool inGame; -void game(int diff); +#include + +class Game { +private: + static constexpr int MAX_W = 32; + static constexpr int MAX_H = 32; + + int boardWidth; + int boardHeight; + + bool bombMap[MAX_H][MAX_W]; + int tileMap[MAX_H][MAX_W]; + + int mines; + +public: + void initDiff(int diff); + void initBoard(); + void displayBoard(); +}; #endif -- cgit v1.2.3