We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 274c8ec commit 9911499Copy full SHA for 9911499
src/eval.cpp
@@ -211,12 +211,12 @@ namespace Eval {
211
212
for (char x = 2; x < 6; x++) {
213
// White
214
- for (char y = 1; y < 4; y++) {
+ for (char y = 1; y < 5; y++) {
215
if (bit(wp, (y<<3)+x)) space += y-1;
216
}
217
218
// Black
219
- for (char y = 4; y < 7; y++) {
+ for (char y = 3; y < 7; y++) {
220
if (bit(bp, (y<<3)+x)) space -= 6-y;
221
222
@@ -280,6 +280,6 @@ namespace Eval {
280
const float p = phase(pos);
281
const float score = mg*p + eg*(1-p);
282
283
- return mat + score;
+ return mat + 0.4*score;
284
285
0 commit comments