-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·39 lines (32 loc) · 819 Bytes
/
main.cpp
File metadata and controls
executable file
·39 lines (32 loc) · 819 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
#include "engine.h"
#include "util.h"
#include "data.h"
#include <iostream>
#include <string>
using namespace std;
engine Engine;
int main()
{
Engine.SearchTime = 15000;
//Engine.ProcessCommand( "post" );
//Engine.TestSuite( "../Test Suites/BWTC.EPD", 3000 );
//Engine.TestSuite( "../Test Suites/WAC.EPD", 2800 );
//Engine.TestSuite( "../Test Suites/WCSAC.EPD", 2800 );
while( 1 ){
string Command;
getline( cin, Command );
Engine.ProcessCommand( Command );
}
}
DWORD WINAPI SearchThreadFunction( LPVOID SearchArgs )
{
Engine.TerminatePonder();
Engine.MakeBestMove( Engine.CompColor, Engine.SearchTime, true );
Engine.StartPonder();
return 0x0;
}
DWORD WINAPI PonderThreadFunction( LPVOID PonderArgs )
{
Engine.Ponder( Engine.CompColor );
return 0x0;
}