My Project
const.h
Go to the documentation of this file.
1
11
#ifndef EDAX_CONST_H
12
#define EDAX_CONST_H
13
15
#define MAX_THREADS 64
16
18
#define MAX_MOVE 32
19
21
#define BOARD_SIZE 64
22
25
#define GAME_SIZE 80
26
28
enum
{
29
A1
,
B1
,
C1
,
D1
,
E1
,
F1
,
G1
,
H1
,
30
A2
,
B2
,
C2
,
D2
,
E2
,
F2
,
G2
,
H2
,
31
A3
,
B3
,
C3
,
D3
,
E3
,
F3
,
G3
,
H3
,
32
A4
,
B4
,
C4
,
D4
,
E4
,
F4
,
G4
,
H4
,
33
A5
,
B5
,
C5
,
D5
,
E5
,
F5
,
G5
,
H5
,
34
A6
,
B6
,
C6
,
D6
,
E6
,
F6
,
G6
,
H6
,
35
A7
,
B7
,
C7
,
D7
,
E7
,
F7
,
G7
,
H7
,
36
A8
,
B8
,
C8
,
D8
,
E8
,
F8
,
G8
,
H8
,
37
PASS
,
NOMOVE
38
};
39
41
enum
{
42
BLACK
= 0,
43
WHITE
,
44
EMPTY
,
45
OFF_SIDE
46
};
47
48
extern
const
unsigned
long
long
X_TO_BIT
[];
49
extern
const
unsigned
long
long
NEIGHBOUR
[];
50
52
#define SCORE_INF 127
53
55
#define SCORE_MIN -64
56
58
#define SCORE_MAX 64
59
61
#define TIME_MAX 31557600000000LL
62
64
#define HOUR 3600000LL
65
67
#define MAX_OBSERVER 2
68
70
typedef
enum
Stop
{
71
RUNNING
= 0,
72
STOP_PARALLEL_SEARCH
,
73
STOP_PONDERING
,
74
STOP_TIMEOUT
,
75
STOP_ON_DEMAND
,
76
STOP_END
77
}
Stop
;
78
80
typedef
enum
{
81
PV_NODE
,
82
CUT_NODE
,
83
ALL_NODE
84
}
NodeType
;
85
86
#define VERSION 4
87
#define RELEASE 4
88
#define VERSION_STRING "4.4"
89
#define EDAX_NAME "Edax 4.4"
90
#define BOOK 0x424f4f4b
91
#define EDAX 0x45444158
92
#define EVAL 0x4556414c
93
#define XADE 0x58414445
94
#define LAVE 0x4c415645
95
99
typedef
enum
PlayState
{
100
IS_WAITING
,
101
IS_PONDERING
,
102
IS_ANALYZING
,
103
IS_THINKING
104
}
PlayState
;
105
107
enum
{
108
UI_NONE
= 0,
109
UI_CASSIO
,
110
UI_EDAX
,
111
UI_GGS
,
112
UI_GTP
,
113
UI_NBOARD
,
114
UI_XBOARD
,
115
UI_LIBEDAX
// add for libedax by lavox. 2018/1/16
116
};
117
118
// add for libedax by lavox 2022/6/18
119
#define BESTPATH_BEST 128
120
121
#endif
122
123
UI_EDAX
@ UI_EDAX
Definition:
const.h:110
UI_GGS
@ UI_GGS
Definition:
const.h:111
UI_NBOARD
@ UI_NBOARD
Definition:
const.h:113
UI_CASSIO
@ UI_CASSIO
Definition:
const.h:109
UI_GTP
@ UI_GTP
Definition:
const.h:112
UI_LIBEDAX
@ UI_LIBEDAX
Definition:
const.h:115
UI_NONE
@ UI_NONE
Definition:
const.h:108
UI_XBOARD
@ UI_XBOARD
Definition:
const.h:114
B3
@ B3
Definition:
const.h:31
D7
@ D7
Definition:
const.h:35
PASS
@ PASS
Definition:
const.h:37
B6
@ B6
Definition:
const.h:34
F3
@ F3
Definition:
const.h:31
D4
@ D4
Definition:
const.h:32
NOMOVE
@ NOMOVE
Definition:
const.h:37
E8
@ E8
Definition:
const.h:36
E4
@ E4
Definition:
const.h:32
E6
@ E6
Definition:
const.h:34
C4
@ C4
Definition:
const.h:32
A6
@ A6
Definition:
const.h:34
F5
@ F5
Definition:
const.h:33
C5
@ C5
Definition:
const.h:33
D1
@ D1
Definition:
const.h:29
H4
@ H4
Definition:
const.h:32
G5
@ G5
Definition:
const.h:33
B8
@ B8
Definition:
const.h:36
E7
@ E7
Definition:
const.h:35
E3
@ E3
Definition:
const.h:31
A2
@ A2
Definition:
const.h:30
A3
@ A3
Definition:
const.h:31
C7
@ C7
Definition:
const.h:35
H5
@ H5
Definition:
const.h:33
B7
@ B7
Definition:
const.h:35
F1
@ F1
Definition:
const.h:29
C2
@ C2
Definition:
const.h:30
C8
@ C8
Definition:
const.h:36
G6
@ G6
Definition:
const.h:34
E5
@ E5
Definition:
const.h:33
B4
@ B4
Definition:
const.h:32
F7
@ F7
Definition:
const.h:35
A1
@ A1
Definition:
const.h:29
A7
@ A7
Definition:
const.h:35
H1
@ H1
Definition:
const.h:29
D2
@ D2
Definition:
const.h:30
F4
@ F4
Definition:
const.h:32
G3
@ G3
Definition:
const.h:31
B2
@ B2
Definition:
const.h:30
D5
@ D5
Definition:
const.h:33
G8
@ G8
Definition:
const.h:36
F6
@ F6
Definition:
const.h:34
F2
@ F2
Definition:
const.h:30
H6
@ H6
Definition:
const.h:34
A5
@ A5
Definition:
const.h:33
G1
@ G1
Definition:
const.h:29
E1
@ E1
Definition:
const.h:29
H7
@ H7
Definition:
const.h:35
H3
@ H3
Definition:
const.h:31
D6
@ D6
Definition:
const.h:34
H2
@ H2
Definition:
const.h:30
F8
@ F8
Definition:
const.h:36
E2
@ E2
Definition:
const.h:30
B1
@ B1
Definition:
const.h:29
A4
@ A4
Definition:
const.h:32
C3
@ C3
Definition:
const.h:31
H8
@ H8
Definition:
const.h:36
D3
@ D3
Definition:
const.h:31
C6
@ C6
Definition:
const.h:34
G7
@ G7
Definition:
const.h:35
C1
@ C1
Definition:
const.h:29
D8
@ D8
Definition:
const.h:36
G2
@ G2
Definition:
const.h:30
G4
@ G4
Definition:
const.h:32
B5
@ B5
Definition:
const.h:33
A8
@ A8
Definition:
const.h:36
OFF_SIDE
@ OFF_SIDE
Definition:
const.h:45
WHITE
@ WHITE
Definition:
const.h:43
EMPTY
@ EMPTY
Definition:
const.h:44
BLACK
@ BLACK
Definition:
const.h:42
NEIGHBOUR
const unsigned long long NEIGHBOUR[]
Definition:
bit.c:39
Stop
Stop
Definition:
const.h:70
RUNNING
@ RUNNING
Definition:
const.h:71
STOP_ON_DEMAND
@ STOP_ON_DEMAND
Definition:
const.h:75
STOP_TIMEOUT
@ STOP_TIMEOUT
Definition:
const.h:74
STOP_PARALLEL_SEARCH
@ STOP_PARALLEL_SEARCH
Definition:
const.h:72
STOP_END
@ STOP_END
Definition:
const.h:76
STOP_PONDERING
@ STOP_PONDERING
Definition:
const.h:73
PlayState
PlayState
Definition:
const.h:99
IS_THINKING
@ IS_THINKING
Definition:
const.h:103
IS_PONDERING
@ IS_PONDERING
Definition:
const.h:101
IS_WAITING
@ IS_WAITING
Definition:
const.h:100
IS_ANALYZING
@ IS_ANALYZING
Definition:
const.h:102
NodeType
NodeType
Definition:
const.h:80
CUT_NODE
@ CUT_NODE
Definition:
const.h:82
PV_NODE
@ PV_NODE
Definition:
const.h:81
ALL_NODE
@ ALL_NODE
Definition:
const.h:83
X_TO_BIT
const unsigned long long X_TO_BIT[]
Definition:
bit.c:18
Generated by
1.9.5