From d7ca1c1cf29a4f43be4ba450a2507493c153cc85 Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Mon, 2 Feb 2026 12:58:14 +0100 Subject: Fixed bomb amount checking --- src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3