Skip to content

Commit

Permalink
Extra bonus for capture creating a huge fail high
Browse files Browse the repository at this point in the history
STC:
http://tests.stockfishchess.org/tests/view/5b114f3d0ebc596e9e0881f6
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 13007 W: 2730 L: 2541 D: 7736

LTC:
http://tests.stockfishchess.org/tests/view/5b1176740ebc59033d2d52c6
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 15594 W: 2417 L: 2239 D: 10938

See #1627

Bench: 4790240
  • Loading branch information
pb00068 authored and snicolet committed Jun 2, 2018
1 parent a0486ec commit c5d6ae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search.cpp
Expand Up @@ -1166,7 +1166,8 @@ namespace {
if (!pos.capture_or_promotion(bestMove))
update_quiet_stats(pos, ss, bestMove, quietsSearched, quietCount, stat_bonus(depth));
else
update_capture_stats(pos, bestMove, capturesSearched, captureCount, stat_bonus(depth));
update_capture_stats(pos, bestMove, capturesSearched, captureCount,
stat_bonus(depth + bool(bestValue > beta + KnightValueMg) * ONE_PLY));

// Extra penalty for a quiet TT move in previous ply when it gets refuted
if ((ss-1)->moveCount == 1 && !pos.captured_piece())
Expand Down

1 comment on commit c5d6ae8

@DU-jdto
Copy link

@DU-jdto DU-jdto commented on c5d6ae8 Jun 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes an error when compiling with MSVC due to the ambiguity of which operator* overload is intended.

Please sign in to comment.