-
Notifications
You must be signed in to change notification settings - Fork 0
/
UCI.hpp
61 lines (45 loc) · 997 Bytes
/
UCI.hpp
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
//
// UCI.hpp
// Chess Engine
//
// Created by Blake Johnson on 2/22/19.
// Copyright © 2019 Blake Johnson. All rights reserved.
//
#ifndef UCI_hpp
#define UCI_hpp
#include <ctime>
#include <fstream>
#include <stdio.h>
#include <string>
#include "evaluate.hpp"
#include "moveGen.hpp"
#include "position.hpp"
#include "search.hpp"
#include "types.hpp"
extern int valueee;
class UCI
{
private:
// Time controls
int wTime;
int bTime;
int wInc;
int bInc;
//search controls
int depth;
int moveTime;
position pos;
std::ofstream logFile;
//debug
int totalStates;
public:
UCI ();
void loop ();
void parseGo (std::istringstream& stream);
void parsePosition (std::istringstream& stream, returnState& newState);
move moveCheck(std::string str); //compare move to legal moves
std::string moveToString (move m);
//debug
int totalState(returnState* st);
};
#endif /* UCI_hpp */