Skip to content

Commit

Permalink
Simplify Futility Move Count
Browse files Browse the repository at this point in the history
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
  • Loading branch information
protonspring authored and vondele committed Feb 15, 2020
1 parent be5a2f0 commit 10ead8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 10ead8a

Please sign in to comment.