summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-02-02 14:36:05 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-02-02 14:36:05 +0100
commit476d08ade6242c1400abb6afb44f0a8ebc7a02b2 (patch)
tree4ecf362fcc0eb3e7ed9ba657672b12f0ab4151c0 /src
parent2aad1ecfe24b2eb5372eb16b13721e57f9f4a917 (diff)
Added temporary bomb debugging
Diffstat (limited to 'src')
-rw-r--r--src/Game.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Game.cpp b/src/Game.cpp
index aa42b9a..36a38be 100644
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -51,6 +51,10 @@ void Game::initBoard() {
// initializing tile map for display
for (int i = 0; i < boardHeight; i++) {
for (int j = 0; j < boardWidth; j++) {
+ // DEBUG: seeing bombs
+ if(bombMap[i][j] == true){
+ tileMap[i][j] = 11;
+ }
tileMap[i][j] = 0;
}
}
@@ -100,6 +104,7 @@ int Game::editDiff(){
8 - revealed tile with 7 bomb around
9 - revealed tile with 8 bomb around
10 - flag
+11 - bomb (for DEBUGGING)
*/
@@ -134,6 +139,8 @@ void Game::displayBoard() {
putchar('8');
} else if(tileMap[i][j] == 10){
putchar('X');
+ } else if(tileMap[i][j] == 11){
+ putchar('B');
}
}
putchar('\n');