-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
54 lines (47 loc) · 1023 Bytes
/
Main.cpp
File metadata and controls
54 lines (47 loc) · 1023 Bytes
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
#include <iostream>
#include "info.h"
#include "AI.h"
#include "UCI_client.h"
#include "ZobristHash.h"
#include "consoleGame.h"
#include "Testing.h"
using namespace std;
void testing();
int main(int argc, char* argv[])
{
sayHello();
// Wait for first input to decide which mode should be started
UCIclient uciClient;
uciClient.UCI_IO_loop();
while (true) {
string input;
getline(cin, input);
boost::trim(input);
if (input == "uci") {
UCIclient uciClient;
uciClient.printEngineID();
uciClient.UCI_IO_loop();
}
else if (input == "xboard") { /* Not supported */ }
else {
// Interactive move
ConsoleGame consoleGame;
consoleGame.ioLoop(input);
}
}
return 0;
}
void testing(){
Benchmark benchmark;
//SearchTest searchTest;
//searchTest.test();
//benchmark.benchmarkMovemaking();
//benchmark.benchmarkMoveGeneration();
//benchmark.testPerft(-1);
benchmark.perftTestSuite();
//DataBaseTest dbt;
//dbt.start_Bratko_Kopec_Test();
cout << "EOP\n";
cin.ignore();
exit(0);
}