10 Commits

Author SHA1 Message Date
b1af7b4f41 Merge branch 'main' of https://gitea.codersquack.nl/thorium1256/minesweeper 2025-06-29 20:57:19 +03:00
2b0f20d65a Merge branch 'main' of https://gitea.codersquack.nl/thorium1256/minesweeper 2025-06-25 21:12:32 +03:00
e394d0986e relicense and make it REUSE-compliant 2025-06-25 20:49:03 +03:00
d8eb655dd7 fixed expert board size 2025-06-25 20:49:03 +03:00
b878c2ddb3 added install script 2025-06-25 20:49:03 +03:00
a0e5850e68 fix for compiler screams
forgotten others
2025-06-25 20:49:01 +03:00
84972ed9bb silly makefile stuff
makefile realization

makefile insanity

makefile madness

readme update to fit in with actual makefile
2025-06-25 20:48:44 +03:00
08f6ee7161 fixed a bug that would need you to press q a lot when there were a lot of restarts 2025-06-25 20:48:40 +03:00
f7d2f138ea minor changes to the rules 2025-06-25 20:48:39 +03:00
1d07cee01a the timer only starts when an action is taken 2025-06-25 20:48:36 +03:00

View File

@@ -177,10 +177,10 @@ void startGame(Board &board)
cursorX = (cursorX < boardSize.x - 1) ? cursorX + 1 : 0;
break;
case 'q':
exit(0);
echo();
cbreak();
endwin();
exit(0);
break;
case 'z':
if (!somethingHasBeenDone)
@@ -283,10 +283,10 @@ void startGame(Board &board)
Board newBoard(boardSize.x, boardSize.y, board.getMineCount());
startGame(newBoard);
} else if(c == 'q') {
exit(0);
echo();
cbreak();
endwin();
exit(0);
}
};
}
@@ -313,10 +313,10 @@ void startGame(Board &board)
Board newBoard(boardSize.x, boardSize.y, board.getMineCount());
startGame(newBoard);
} else if(c == 'q') {
exit(0);
echo();
cbreak();
endwin();
exit(0);
}
};
}