Skip to content
Snippets Groups Projects
Commit cb34ba98 authored by Bradley Eaton's avatar Bradley Eaton
Browse files

Fix automatic win in certain cases

parent 1c838988
No related branches found
No related tags found
No related merge requests found
Pipeline #7431 passed
......@@ -436,7 +436,7 @@ void gameOverCommon(char* title){
"View Board",
"Main Menu"
};
clear_screen();
// clear_screen();
printMenu(title, (char*) items, GAME_OVER_MENU_ITEMS_COUNT);
}
......@@ -658,6 +658,9 @@ int collect_delta(int state) {
** Sets up the game to before start state
*/
void setup_game(){
mines_untagged= 0;
cells_tagged = 0;
cells_discovered = 0;
menuStatus = 0;
game_state = GAME_STATE_STARTING;
printGrid();
......
......@@ -43,7 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define MINES_H_
// if debug mode define this here
//#define DEBUG
#define DEBUG
//
// Cell
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment