Skip quiet moves based on moveCount pruning threshold and history stats

If we can moveCountPrune and next quiet move has negative stats,
then go directly to the next move stage (Bad_Captures).

Reduction formula is tweaked to compensate for the decrease in move count that is used in LMR.

STC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 6847 W: 1276 L: 1123 D: 4448

LTC:
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 48687 W: 6503 L: 6226 D: 35958

Bench: 5919519

Closes #1036
This commit is contained in:
VoyagerOne
2017-03-18 15:41:55 -07:00
committed by Joona Kiiski
parent c80d52c845
commit 352bd6f5aa
3 changed files with 12 additions and 7 deletions

View File

@@ -175,7 +175,7 @@ void MovePicker::score<EVASIONS>() {
/// left. It picks the move with the biggest value from a list of generated moves
/// taking care not to return the ttMove if it has already been searched.
Move MovePicker::next_move() {
Move MovePicker::next_move(bool skipQuiets) {
Move move;
@@ -248,9 +248,11 @@ Move MovePicker::next_move() {
++stage;
case QUIET:
while (cur < endMoves)
while ( cur < endMoves
&& (!skipQuiets || cur->value >= VALUE_ZERO))
{
move = *cur++;
if ( move != ttMove
&& move != ss->killers[0]
&& move != ss->killers[1]