summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 5498cf918596121093af9aadbcb896d74d19cb2b (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
26
27
28
29
30
31
#include <iostream>
#include "game/globals.hpp"
using namespace std;

int main(){
	int choice;

	while(!inGame){
		cout << "Welcome to minesweeper 0.1.0\n";
		cout << "\n";
		cout << "Select difficulty:\n"
			"1. Easy\n"
			"2. Medium\n"
			"3. Hard\n"
			"4. Custom\n";
		cout << "Difficulty: ";
		cin >> choice;

		if(choice == 1){
			game(0);
		} else if(choice == 2){
			game(1);
		} else if(choice == 3){
			game(2);
		} else if(choice == 4){
			game(3);
		}
	}

	return 0;
}