projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
77b5ee0
)
Fix a silly unstoppable eval bug
author
Marco Costalba
<mcostalba@gmail.com>
Mon, 16 Sep 2013 21:59:37 +0000 (23:59 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Mon, 16 Sep 2013 21:59:37 +0000 (23:59 +0200)
The logic is broken for black side because we get more bonus
for pawn in 7th rank than for pawn in 2nd rank!
Spotted by Reuven Peleg
bench:3884409
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
7844deb
..
63c0f1f
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-906,7
+906,7
@@
Value do_evaluate(const Position& pos, Value& margin) {
if (!b || pos.non_pawn_material(~us))
return SCORE_ZERO;
- return Unstoppable * int(relative_rank(WHITE, frontmost_sq(us, b)));
+ return Unstoppable * int(relative_rank(us, frontmost_sq(us, b)));
}