Less move count pruning for wall gating
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 20 Jan 2023 15:23:12 +0000 (16:23 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 20 Jan 2023 15:23:12 +0000 (16:23 +0100)
duck STC
ELO: 54.65 +-27.2 (95%) LOS: 100.0%
Total: 500 W: 234 L: 156 D: 110

duck LTC
ELO: 68.63 +-43.2 (95%) LOS: 99.9%
Total: 200 W: 97 L: 58 D: 45

amazons STC
ELO: 30.65 +-43.4 (95%) LOS: 91.9%
Total: 250 W: 136 L: 114 D: 0

src/search.cpp

index fe4d6fb..31449cf 100644 (file)
@@ -80,7 +80,7 @@ namespace {
   }
 
   int futility_move_count(bool improving, Depth depth, const Position& pos) {
-    return (3 + depth * depth + 2 * pos.blast_on_capture()) / (2 - improving + pos.blast_on_capture());
+    return (3 + depth * depth * (1 + pos.wall_gating()) + 2 * pos.blast_on_capture()) / (2 - improving + pos.blast_on_capture());
   }
 
   // History and stats update bonus, based on depth