Skip to content

Commit

Permalink
- Fix scores from reverse futility pruning : official-stockfish/Stock…
Browse files Browse the repository at this point in the history
  • Loading branch information
yaneurao committed Feb 14, 2024
1 parent 4fc294e commit 9b9d110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/engine/yaneuraou-engine/yaneuraou-search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
// ※ 統計値(mainHistoryとかstatScoreとか)のしきい値に関しては、やねうら王ではStockfishから調整しないことにしているので、
// 上のif式に出てくる定数については調整しないことにする。

return (eval + beta) / 2;
return beta > VALUE_TB_LOSS_IN_MAX_PLY ? (eval + beta) / 2 : eval;

// 次のようにするより、単にevalを返したほうが良いらしい。
// return eval - futility_margin(depth);
Expand Down

0 comments on commit 9b9d110

Please sign in to comment.