mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Update elo estimates
Tests used to change the elo worth of some functions: https://tests.stockfishchess.org/tests/view/65c3f69dc865510db0283eef https://tests.stockfishchess.org/tests/view/65c3f935c865510db0283f2a https://tests.stockfishchess.org/tests/view/65d1489f1d8e83c78bfd7dbf https://tests.stockfishchess.org/tests/view/65ce9d361d8e83c78bfd4951 https://tests.stockfishchess.org/tests/view/65cfcd901d8e83c78bfd6184 closes https://github.com/official-stockfish/Stockfish/pull/5089 No functional change
This commit is contained in:
parent
a615efb19f
commit
a96b0d4609
2 changed files with 6 additions and 6 deletions
|
@ -614,7 +614,7 @@ Value Search::Worker::search(
|
||||||
update_quiet_stats(pos, ss, *this, ttMove, stat_bonus(depth));
|
update_quiet_stats(pos, ss, *this, ttMove, stat_bonus(depth));
|
||||||
|
|
||||||
// Extra penalty for early quiet moves of
|
// Extra penalty for early quiet moves of
|
||||||
// the previous ply (~0 Elo on STC, ~2 Elo on LTC).
|
// the previous ply (~1 Elo on STC, ~2 Elo on LTC)
|
||||||
if (prevSq != SQ_NONE && (ss - 1)->moveCount <= 2 && !priorCapture)
|
if (prevSq != SQ_NONE && (ss - 1)->moveCount <= 2 && !priorCapture)
|
||||||
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
|
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
|
||||||
-stat_malus(depth + 1));
|
-stat_malus(depth + 1));
|
||||||
|
@ -1067,7 +1067,7 @@ moves_loop: // When in check, search starts here
|
||||||
extension = -1;
|
extension = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recapture extensions (~1 Elo)
|
// Recapture extensions (~0 Elo on STC, ~1 Elo on LTC)
|
||||||
else if (PvNode && move == ttMove && move.to_sq() == prevSq
|
else if (PvNode && move == ttMove && move.to_sq() == prevSq
|
||||||
&& thisThread->captureHistory[movedPiece][move.to_sq()]
|
&& thisThread->captureHistory[movedPiece][move.to_sq()]
|
||||||
[type_of(pos.piece_on(move.to_sq()))]
|
[type_of(pos.piece_on(move.to_sq()))]
|
||||||
|
@ -1105,7 +1105,7 @@ moves_loop: // When in check, search starts here
|
||||||
if (ttCapture)
|
if (ttCapture)
|
||||||
r++;
|
r++;
|
||||||
|
|
||||||
// Decrease reduction for PvNodes (~3 Elo)
|
// Decrease reduction for PvNodes (~0 Elo on STC, ~2 Elo on LTC)
|
||||||
if (PvNode)
|
if (PvNode)
|
||||||
r--;
|
r--;
|
||||||
|
|
||||||
|
@ -1167,7 +1167,7 @@ moves_loop: // When in check, search starts here
|
||||||
// Step 18. Full-depth search when LMR is skipped
|
// Step 18. Full-depth search when LMR is skipped
|
||||||
else if (!PvNode || moveCount > 1)
|
else if (!PvNode || moveCount > 1)
|
||||||
{
|
{
|
||||||
// Increase reduction if ttMove is not present (~1 Elo)
|
// Increase reduction if ttMove is not present (~6 Elo)
|
||||||
if (!ttMove)
|
if (!ttMove)
|
||||||
r += 2;
|
r += 2;
|
||||||
|
|
||||||
|
|
|
@ -89,8 +89,8 @@ void TimeManagement::init(Search::LimitsType& limits,
|
||||||
- moveOverhead * (2 + mtg));
|
- moveOverhead * (2 + mtg));
|
||||||
|
|
||||||
// x basetime (+ z increment)
|
// x basetime (+ z increment)
|
||||||
// If there is a healthy increment, timeLeft can exceed actual available
|
// If there is a healthy increment, timeLeft can exceed the actual available
|
||||||
// game time for the current move, so also cap to 20% of available game time.
|
// game time for the current move, so also cap to a percentage of available game time.
|
||||||
if (limits.movestogo == 0)
|
if (limits.movestogo == 0)
|
||||||
{
|
{
|
||||||
// Use extra time with larger increments
|
// Use extra time with larger increments
|
||||||
|
|
Loading…
Add table
Reference in a new issue