summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-02-02 12:58:14 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-02-02 12:58:14 +0100
commitd7ca1c1cf29a4f43be4ba450a2507493c153cc85 (patch)
tree66bcd4f41426de27462c1071d8af572dbbe9b83c
parent90962f793887fd147dfc247e7f5b0d66ab9dac83 (diff)
Fixed bomb amount checking
-rw-r--r--src/Game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Game.cpp b/src/Game.cpp
index 3e7384b..5399a22 100644
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -80,7 +80,7 @@ int Game::editDiff(){
std::cin >> mines;
if (mines > 8 || mines > (boardWidth * boardHeight)) {
- std::cout << "There can't be more than " << mines << " mines." << std::endl;
+ std::cout << "There can't be more than 8 or " << (boardWidth * boardHeight) << "mines." << std::endl;
return 1;
}