projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2ae4b4f
)
Scale evaluation for material counting
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Sun, 13 Sep 2020 18:15:56 +0000 (20:15 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Sun, 13 Sep 2020 18:15:56 +0000 (20:15 +0200)
janggi
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1658 W: 873 L: 749 D: 36
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
dc508ef
..
5000df0
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-1236,7
+1236,11
@@
namespace {
// Damp down the evaluation linearly when shuffling
if (pos.n_move_rule())
+ {
v = v * (2 * pos.n_move_rule() - pos.rule50_count()) / (2 * pos.n_move_rule());
+ if (pos.material_counting())
+ v += pos.material_counting_result() / (10 * std::max(2 * pos.n_move_rule() - pos.rule50_count(), 1));
+ }
return v;
}