1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-13 04:29:15 +00:00

Razor Simplification

Remove code that restrict using tt-moves for razoring.

STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 67442 W: 12039 L: 11997 D: 43406

LTC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 38541 W: 5044 L: 4947 D: 28550

Bench: 5667216

Closes #1002
This commit is contained in:
VoyagerOne 2017-02-18 22:48:28 -08:00 committed by Joona Kiiski
parent faedcf08a8
commit 05cf45f2d1

View file

@ -423,7 +423,7 @@ void Thread::search() {
// search the already searched PV lines are preserved. // search the already searched PV lines are preserved.
std::stable_sort(rootMoves.begin() + PVIdx, rootMoves.end()); std::stable_sort(rootMoves.begin() + PVIdx, rootMoves.end());
// If search has been stopped, break immediately. Sorting and // If search has been stopped, we break immediately. Sorting and
// writing PV back to TT is safe because RootMoves is still // writing PV back to TT is safe because RootMoves is still
// valid, although it refers to the previous iteration. // valid, although it refers to the previous iteration.
if (Signals.stop) if (Signals.stop)
@ -733,7 +733,6 @@ namespace {
// Step 6. Razoring (skipped when in check) // Step 6. Razoring (skipped when in check)
if ( !PvNode if ( !PvNode
&& depth < 4 * ONE_PLY && depth < 4 * ONE_PLY
&& ttMove == MOVE_NONE
&& eval + razor_margin[depth / ONE_PLY] <= alpha) && eval + razor_margin[depth / ONE_PLY] <= alpha)
{ {
if (depth <= ONE_PLY) if (depth <= ONE_PLY)