Skip to content

Commit

Permalink
Merge branch 'TM_Change_2' of https://github.com/TierynnB/Stockfish i…
Browse files Browse the repository at this point in the history
…nto TM_Change_2
  • Loading branch information
TierynnB committed Feb 22, 2024
2 parents 76c50a0 + 61e8083 commit 3c3f88b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/evaluate.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Value evaluate(const Position& pos, int optimism);
// The default net name MUST follow the format nn-[SHA256 first 12 digits].nnue
// for the build process (profile-build and fishtest) to work. Do not change the
// name of the macro, as it is used in the Makefile.
#define EvalFileDefaultNameBig "nn-baff1edbea57.nnue"
#define EvalFileDefaultNameBig "nn-b1a57edbea57.nnue"
#define EvalFileDefaultNameSmall "nn-baff1ede1f90.nnue"

struct EvalFile {
Expand Down
13 changes: 3 additions & 10 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,13 +621,6 @@ Value Search::Worker::search(
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
-stat_malus(depth + 1));
}
// Penalty for a quiet ttMove that fails low (~1 Elo)
else if (!ttCapture)
{
int penalty = -stat_malus(depth);
thisThread->mainHistory[us][ttMove.from_to()] << penalty;
update_continuation_histories(ss, pos.moved_piece(ttMove), ttMove.to_sq(), penalty);
}
}

// Partial workaround for the graph history interaction problem
Expand Down Expand Up @@ -1105,9 +1098,9 @@ Value Search::Worker::search(
thisThread->nodes.fetch_add(1, std::memory_order_relaxed);
pos.do_move(move, st, givesCheck);

// Decrease reduction if position is or has been on the PV (~5 Elo)
// Decrease reduction if position is or has been on the PV (~7 Elo)
if (ss->ttPv)
r -= 1 + (ttValue > alpha) + (ttValue > beta && tte->depth() >= depth);
r -= 1 + (ttValue > alpha) + (tte->depth() >= depth);

// Increase reduction for cut nodes (~4 Elo)
if (cutNode)
Expand All @@ -1118,7 +1111,7 @@ Value Search::Worker::search(
r++;

// Decrease reduction for PvNodes (~3 Elo)
if (PvNode && tte->bound() != BOUND_UPPER)
if (PvNode)
r--;

// Increase reduction on repetition (~1 Elo)
Expand Down

0 comments on commit 3c3f88b

Please sign in to comment.