]> git.sesse.net Git - stockfish/commitdiff
Simplify Futility Move Count
authorprotonspring <mike@whiteley.org>
Mon, 10 Feb 2020 22:18:16 +0000 (15:18 -0700)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 15 Feb 2020 14:13:14 +0000 (15:13 +0100)
remove two constants

STC
LLR: 2.95 (-2.94,2.94) {-1.50,0.50}
Total: 62050 W: 11903 L: 11802 D: 38345
Ptnml(0-2): 1002, 7346, 14283, 7320, 1065
http://tests.stockfishchess.org/tests/view/5e41d73be70d848499f63c6d

LTC
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 12850 W: 1679 L: 1572 D: 9599
Ptnml(0-2): 82, 1171, 3818, 1249, 96
http://tests.stockfishchess.org/tests/view/5e42bf07e70d848499f63cc0

Bench: 4762351

src/search.cpp

index f1416a74091e1db17c21571618eb1a892721c266..c3ebf9abc302dd0974e25fef4a6bc32d19e43956 100644 (file)
@@ -79,7 +79,7 @@ namespace {
   }
 
   constexpr int futility_move_count(bool improving, Depth depth) {
-    return (5 + depth * depth) * (1 + improving) / 2 - 1;
+    return (4 + depth * depth) / (2 - improving);
   }
 
   // History and stats update bonus, based on depth