summaryrefslogtreecommitdiff
path: root/Board.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-14 21:57:47 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-14 21:57:47 +0930
commit3a41ff521bd1e95a85bf93ac77d69108a1d9c0c5 (patch)
treeb018937e0e6b768db1f84704efda9f1004309d5a /Board.h
parent971db58ef48db64151a31d4857104ede69475996 (diff)
downloadfoxminesweeper-3a41ff521bd1e95a85bf93ac77d69108a1d9c0c5.tar.gz
foxminesweeper-3a41ff521bd1e95a85bf93ac77d69108a1d9c0c5.zip
work on getting new game working
new games work only if the width and height are the same values
Diffstat (limited to 'Board.h')
-rw-r--r--Board.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Board.h b/Board.h
index 50e9fa4..e2a9da0 100644
--- a/Board.h
+++ b/Board.h
@@ -25,12 +25,13 @@
class Board
{
public:
- Board(int width, int height, int minecount);
+ //Board(int width, int height, int minecount);
+ Board();
~Board();
int get_tile_count(){ return tilecount; };
Tile *get_tile_at(int x, int y);
bool reveal_tile_at(int x, int y);
- void new_game(int x, int y);
+ void new_game(int width, int height, int minecount);
bool is_game_running() { return this->game_running; };
bool is_game_won() { return this->game_won; };
bool check_win();