From 3a41ff521bd1e95a85bf93ac77d69108a1d9c0c5 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 14 Jun 2020 21:57:47 +0930 Subject: work on getting new game working new games work only if the width and height are the same values --- Board.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Board.h') 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(); -- cgit v1.2.3