-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.cpp
More file actions
58 lines (47 loc) · 1.06 KB
/
test.cpp
File metadata and controls
58 lines (47 loc) · 1.06 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "Algorithm.cpp"
int main()
{
srand(time(NULL));
int randomMode = rand() % 3;
Board board;
switch (randomMode)
{
case 0:
cout << "Enter Easy Mode" << endl;
board = EasyMode();
break;
case 1:
cout << "Enter Normal Mode" << endl;
board = NormalMode();
break;
default:
cout << "Enter Hard Mode" << endl;
board = HardMode();
break;
}
for (int i(0); i < 9; i++)
{
for (int j(0); j < 9; j++)
{
cout << board[i][j] << " ";
}
cout << endl;
}
cout << endl
<< endl;
vector<Board> solutions;
solutions = TestUnique(board, solutions);
for (int i(0); i < solutions.size(); i++)
{
for (int j(0); j < 9; j++)
{
for (int k(0); k < 9; k++)
{
cout << solutions.at(i)[j][k] << " ";
}
cout << endl;
}
}
delete board;
return 0;
}