-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenums.hpp
137 lines (120 loc) · 2.14 KB
/
enums.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#ifndef __enums_hpp
#define __enums_hpp
namespace PieceType
{
enum EPieceType
{
white,
wpawns,
wknights,
wbishops,
wrooks,
wqueens,
wking,
black,
bpawns,
bknights,
bbishops,
brooks,
bqueens,
bking,
all,
none
};
enum EDiff
{
pawns_diff = 1,
knights_diff = 2,
bishops_diff = 3,
rooks_diff = 4,
queens_diff = 5,
king_diff = 6
};
}
namespace Color { enum EColor { white, black, none }; }
namespace Sq
{
enum ESq
{
a1, b1, c1, d1, e1, f1, g1, h1,
a2, b2, c2, d2, e2, f2, g2, h2,
a3, b3, c3, d3, e3, f3, g3, h3,
a4, b4, c4, d4, e4, f4, g4, h4,
a5, b5, c5, d5, e5, f5, g5, h5,
a6, b6, c6, d6, e6, f6, g6, h6,
a7, b7, c7, d7, e7, f7, g7, h7,
a8, b8, c8, d8, e8, f8, g8, h8,
none
};
}
namespace Dir
{
enum EDir
{
NW=0, N=1, NE=2,
W=3 , E=4,
SW=5, S=6 , SE=7
};
}
namespace Ranges
{
enum ERanges
{
wBegin = PieceType::wpawns,
wEnd = PieceType::black,
bBegin = PieceType::bpawns,
bEnd = PieceType::all
};
}
namespace Files { enum EFiles { file_1, file_2, file_3, file_4, file_5, file_6, file_7, file_8, none }; }
namespace Ranks { enum ERanks { rank_1, rank_2, rank_3, rank_4, rank_5, rank_6, rank_7, rank_8, none }; }
namespace ValueType
{
enum EValueType
{
value_type_upper = 1, // Upper bound
value_type_lower = 2, // Lower bound
value_type_exact = value_type_upper | value_type_lower
};
}
namespace MoveType
{
enum EMoveType
{
normal,
capture,
m_none
};
enum ESpecialMoveType
{
ep,
promotion,
castle_kingside,
castle_queenside,
s_none
};
}
namespace Values
{
enum EValues
{
value_draw = 0,
value_known_win = 15000,
value_mate = 30000,
value_infinite = 30001,
value_none = 30002,
value_ensure_signed = -1
};
}
namespace CastlingRights
{
enum ECastlingRights
{
WK = 0,
WQ = 1,
BK = 2,
BQ = 3,
Total
};
}
#endif