blob: af89e653f5fafaed7c4361990abbae68ca99713c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "Game.hpp"
#include "../Utils/Utils.hpp"
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <string>
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 << Game::boardWidth;
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;
}
|