-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChessMain.cpp
81 lines (57 loc) · 1.35 KB
/
ChessMain.cpp
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Author: Provided by Course Supervisor
#include <iostream>
#include "ChessBoard.h"
using namespace std;
int main() {
cout << "========================\n";
cout << "Testing the Chess Engine\n";
cout << "========================\n\n";
ChessBoard cb;
cout << '\n';
cb.submitMove("D7", "D6");
cout << '\n';
cb.submitMove("D4", "H6");
cout << '\n';
cb.submitMove("D2", "D4");
cout << '\n';
cb.submitMove("F8", "B4");
cout << '\n';
cout << "=========================\n";
cout << "Alekhine vs. Vasic (1931)\n";
cout << "=========================\n\n";
cb.resetBoard();
cout << '\n';
cb.submitMove("E2", "E4");
cb.submitMove("E7", "E6");
cout << '\n';
cb.submitMove("D2", "D4");
cb.submitMove("D7", "D5");
cout << '\n';
cb.submitMove("B1", "C3");
cb.submitMove("F8", "B4");
cout << '\n';
cb.submitMove("F1", "D3");
cb.submitMove("B4", "C3");
cout << '\n';
cb.submitMove("B2", "C3");
cb.submitMove("H7", "H6");
cout << '\n';
cb.submitMove("C1", "A3");
cb.submitMove("B8", "D7");
cout << '\n';
cb.submitMove("D1", "E2");
cb.submitMove("D5", "E4");
cout << '\n';
cb.submitMove("D3", "E4");
cb.submitMove("G8", "F6");
cout << '\n';
cb.submitMove("E4", "D3");
cb.submitMove("B7", "B6");
cout << '\n';
cb.submitMove("E2", "E6");
cb.submitMove("F7", "E6");
cout << '\n';
cb.submitMove("D3", "G6");
cout << '\n';
return 0;
}