Skip to content

Commit

Permalink
Tuned v3: 200k LTC
Browse files Browse the repository at this point in the history
Bench: 1371690
  • Loading branch information
XInTheDark committed Oct 28, 2023
1 parent 347d613 commit e26e50b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,13 @@ void Thread::search() {

// Reset aspiration window starting size
Value avg = rootMoves[pvIdx].averageScore;
delta = Value(10) + int(avg) * avg / 17470;
delta = Value(10) + int(avg) * avg / 15335;
alpha = std::max(avg - delta, -VALUE_INFINITE);
beta = std::min(avg + delta, VALUE_INFINITE);

// Adjust optimism based on root move's averageScore (~4 Elo)
int opt = 113 * avg / (std::abs(avg) + 109);
optimism[us] = Value(opt);
optimism[~us] = -optimism[us];
optimism[us] = 103 * (avg + 33) / (std::abs(avg + 34) + 119);
optimism[~us] = -116 * (avg + 40) / (std::abs(avg + 12) + 123);

// Start with a small aspiration window and, in the case of a fail
// high/low, re-search with a bigger window until we don't fail
Expand Down

0 comments on commit e26e50b

Please sign in to comment.