Skip to content

Commit

Permalink
- Step 12.の手前のevaluate_with_no_return()を間違って消してた。rollback。
Browse files Browse the repository at this point in the history
  • Loading branch information
yaneurao committed Oct 20, 2024
1 parent 4f984d1 commit c6bb23e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions source/engine/yaneuraou-engine/yaneuraou-search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2410,6 +2410,12 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
moves_loop: // When in check, search starts here
// 王手がかかっている局面では、探索はここから始まる。

// このノードでまだ評価関数を呼び出していないなら、呼び出して差分計算しないといけない。
// (やねうら王独自仕様)
// do_move()で行っている評価関数はこの限りではないが、NNUEでも
// このタイミングで呼び出したほうが高速化するようなので呼び出す。
Eval::evaluate_with_no_return(pos);

// -----------------------
// Step 12. A small Probcut idea, when we are in check (~4 Elo)
// Step 12. 王手がかかっている局面のときに用いる小さなProbcutのアイデア(約4 Elo)
Expand Down
2 changes: 1 addition & 1 deletion source/tt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void TTEntry::_save(TTE_KEY_TYPE k, Value v, bool pv, Bound b, Depth d, Move m,
move16 = m.to_move16();

// Overwrite less valuable entries (cheapest checks first)
// より価値の低いエントリを上書きします(最も安価なチェックを優先
// より価値の低いエントリを上書きします(最も簡単にできるチェックを先に行う

if (b == BOUND_EXACT || k != key || d - DEPTH_ENTRY_OFFSET + 2 * pv > depth8 - 4
|| relative_age(generation8))
Expand Down

0 comments on commit c6bb23e

Please sign in to comment.