-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuci.h
More file actions
37 lines (35 loc) · 976 Bytes
/
uci.h
File metadata and controls
37 lines (35 loc) · 976 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
#pragma once
#include <string_view>
#include <string>
#include "score.h"
namespace engine {
struct InfoShort {
int depth;
Score score;
};
struct InfoFull : InfoShort {
int selDepth;
size_t multiPV;
std::string_view wdl;
std::string_view bound;
size_t timeMs;
size_t nodes;
size_t nps;
size_t tbHits;
std::string_view pv;
int hashfull;
};
struct InfoIteration {
int depth;
std::string_view currmove;
size_t currmovenumber;
};
std::string format_score(const Score &s);
void report(const InfoFull &info, bool showWDL=false);
void report(const InfoShort &info);
void report(const InfoIteration &info);
void report(std::string_view bestmove);
void loop();
class OptionsMap;
extern OptionsMap options;
}