summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-02-02 13:53:34 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-02-02 13:53:34 +0100
commit67f1181e2c9227a3f33f9b6823ad48d33c1482e0 (patch)
tree23534da9c4ac28b2aa4aa96cf925eac41638aff2 /src
parentd7ca1c1cf29a4f43be4ba450a2507493c153cc85 (diff)
a
Diffstat (limited to 'src')
-rw-r--r--src/Game.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Game.cpp b/src/Game.cpp
index 5399a22..d1386fe 100644
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -144,7 +144,16 @@ void Game::input(){
std::cin >> input;
if(input == "q"){
- inGame = false;
+ inGame = false;
+
+ } else if(input == "d"){
+ int x, y;
+ std::cout << "Enter column and row where to dig: ";
+ std::cin >> x >> y;
+ } else if(input == "f"){
+ int x, y;
+ std::cout << "Enter column and row where to place flag: ";
+ std::cin >> x >> y;
} else {
std::cout << "Unknown command '" << input << "'.\n";
}