From 3806bb74674f305679efdaa2889d155531bc3643 Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Mon, 26 Jan 2026 17:24:50 +0100 Subject: dir rename --- src/Game/edit.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/Game/edit.cpp (limited to 'src/Game/edit.cpp') diff --git a/src/Game/edit.cpp b/src/Game/edit.cpp new file mode 100644 index 0000000..8d9c37f --- /dev/null +++ b/src/Game/edit.cpp @@ -0,0 +1,24 @@ +#include "Game.hpp" +#include "../Utils/Utils.hpp" + +#include +#include +#include +#include + +int Game::editDiff(){ + Utils util; + + std::cout << "Now editing custom difficulty" << std::endl; + + std::cout << "Board width: "; + if(util.catchReturn(util.catchInputInt(Game::boardWidth)) != 0) return 1; + + std::cout << "Board height: "; + if(util.catchReturn(util.catchInputInt(Game::boardHeight)) != 0) return 1; + + std::cout << "Mines: "; + if(util.catchReturn(util.catchInputInt(Game::mines)) != 0) return 1; + + return 0; +} \ No newline at end of file -- cgit v1.2.3