Skip to content

Commit

Permalink
- Remove check extension : official-stockfish/Stockfish@96837bc
Browse files Browse the repository at this point in the history
  • Loading branch information
yaneurao committed Feb 15, 2024
1 parent e362c64 commit 8f83fa5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/engine/yaneuraou-engine/yaneuraou-search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
//
// ※ Stockfish 14では depth > 6 だったのが、Stockfish 15でdepth > 9に変更されたが
// それでもまだやりすぎの感はある。やねうら王では、延長の条件をさらに絞る。

/*
else if (givesCheck
&& depth > 9
// !!重要!!
Expand All @@ -2715,6 +2715,9 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
&& (pos.is_discovery_check_on_king(~us, move) || pos.see_ge(move))
)
extension = 1;
*/
// ⇨ Stockfishで削除されたが、王手延長自体は何らかあった方が良い可能性はあるので条件を調整してはどうか。
// Remove check extension : https://github.com/official-stockfish/Stockfish/commit/96837bc4396d205536cdaabfc17e4885a48b0588

// Recapture extensions (~1 Elo)
else if (PvNode && move == ttMove && to_sq(move) == prevSq
Expand All @@ -2723,6 +2726,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
extension = 1;
}


// -----------------------
// 1手進める前の枝刈り
// -----------------------
Expand Down

0 comments on commit 8f83fa5

Please sign in to comment.