Skip to content
This repository was archived by the owner on Aug 2, 2019. It is now read-only.

Commit a000ffe

Browse files
committed
Value order
Let's use Fabien's value order like he does in piece.cpp ;-)
1 parent bcfd380 commit a000ffe

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/eval.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,26 +180,27 @@ static const int KingAttackWeight[16] = {
180180
};
181181

182182
static const int MajLine[8] = { // major
183-
+25, +25, +15, +5, +5, +15, +25, +25, // TODO: tune me!
183+
+25, +25, +15, +5, +5, +15, +25, +25, // TODO: tune me!
184184
};
185185

186186
static const int MinLine[8] = { // minor
187-
+35, +25, +15, +5, +5, +15, +25, +35, // TODO: tune me!
187+
+35, +25, +15, +5, +5, +15, +25, +35, // TODO: tune me!
188188
};
189189

190190
static const inc_t KnightVector[8] = {
191-
-33, -31, -18, -14, 33, 31, 18, 14
191+
-33, -31, -18, -14, +14, +18, +31, +33,
192192
};
193193

194194
static const inc_t BishopVector[4] = {
195-
-17, -15, 15, 17
195+
-17, -15, +15, +17,
196196
};
197197

198198
static const inc_t RookVector[4] = {
199-
-1, -16, 16, 1
199+
-16, -1, +1, +16,
200200
};
201+
201202
static const inc_t QueenVector[8] = {
202-
-17, -15, 15, 17, -1, -16, 16, 1
203+
-17, -16, -15, -1, +1, +15, +16, +17,
203204
};
204205

205206
// variables

0 commit comments

Comments
 (0)