From: Fabian Fichter Date: Sun, 13 Sep 2020 18:15:56 +0000 (+0200) Subject: Scale evaluation for material counting X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c97fd9d74f32d850893eeec5bf3c3955adbe4df3;p=fairystockfish.git Scale evaluation for material counting janggi LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 1658 W: 873 L: 749 D: 36 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index dc508ef..5000df0 100644 --- 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; }