Skip to content

Commit

Permalink
- Refactor ttPv reduction conditions : official-stockfish/Stockfish@a…
Browse files Browse the repository at this point in the history
  • Loading branch information
yaneurao committed Feb 15, 2024
1 parent 889fada commit cb0e9fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/engine/yaneuraou-engine/yaneuraou-search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2803,20 +2803,20 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo

// 【計測資料 18.】cut nodeのときにreductionを増やすかどうか。

if (cutNode)
r += 2;
if (cutNode)
r += 2 - (tte->depth() >= depth && ss->ttPv);

// Increase reduction if ttMove is a capture (~3 Elo)
// 【計測資料 3.】置換表の指し手がcaptureのときにreduction量を増やす。

if (ttCapture)
r++;

// Decrease reduction for PvNodes (~2 Elo)
// Decrease reduction for PvNodes (~3 Elo)
// PvNodeではreductionを減らす。
if (PvNode && tte->bound() != BOUND_UPPER)
r--;

if (PvNode)
r--;

// Decrease reduction if ttMove has been singularly extended (~1 Elo)
// ttMoveがsingular extensionで延長されたならreductionを減らす。
Expand Down

0 comments on commit cb0e9fa

Please sign in to comment.