projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
25a964a
)
Tweak drop mobility
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 3 Jul 2020 13:05:24 +0000 (15:05 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 3 Jul 2020 13:05:24 +0000 (15:05 +0200)
reversi
Total: 100 W: 99 L: 1 D: 0
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
3b327b6
..
1b94859
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-453,6
+453,8
@@
namespace {
if (pos.promoted_piece_type(pt) != NO_PIECE_TYPE && pos.drop_promoted())
score += make_score(std::max(PieceValue[MG][pos.promoted_piece_type(pt)] - PieceValue[MG][pt], VALUE_ZERO),
std::max(PieceValue[EG][pos.promoted_piece_type(pt)] - PieceValue[EG][pt], VALUE_ZERO)) / 4 * pos.count_in_hand(Us, pt);
+ if (pos.enclosing_drop())
+ mobility[Us] += make_score(500, 500) * popcount(b);
}
return score;