Skip to content

Commit 9911499

Browse files
committed
Changed weight.
1 parent 274c8ec commit 9911499

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/eval.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ namespace Eval {
211211

212212
for (char x = 2; x < 6; x++) {
213213
// White
214-
for (char y = 1; y < 4; y++) {
214+
for (char y = 1; y < 5; y++) {
215215
if (bit(wp, (y<<3)+x)) space += y-1;
216216
}
217217

218218
// Black
219-
for (char y = 4; y < 7; y++) {
219+
for (char y = 3; y < 7; y++) {
220220
if (bit(bp, (y<<3)+x)) space -= 6-y;
221221
}
222222
}
@@ -280,6 +280,6 @@ namespace Eval {
280280
const float p = phase(pos);
281281
const float score = mg*p + eg*(1-p);
282282

283-
return mat + score;
283+
return mat + 0.4*score;
284284
}
285285
}

0 commit comments

Comments
 (0)