Skip to content

Commit bbf9daa

Browse files
vondelesnicolet
authored andcommitted
Remove essentially unused code
this was added recently as part of a larger commit, but only changes eval of positions at MAX_PLY depth a little. Can be safely removed: passed STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 7424 W: 1640 L: 1492 D: 4292 http://tests.stockfishchess.org/html/live_elo.html?5ba3bcbe0ebc592cf27677ff passed LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 73554 W: 12028 L: 11990 D: 49536 http://tests.stockfishchess.org/html/live_elo.html?5ba397ee0ebc592cf2767556 unchanged Bench: 4248710
1 parent 13d06ed commit bbf9daa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,7 @@ namespace {
584584
if ( Threads.stop.load(std::memory_order_relaxed)
585585
|| pos.is_draw(ss->ply)
586586
|| ss->ply >= MAX_PLY)
587-
return (ss->ply >= MAX_PLY && !inCheck) ? evaluate(pos) - 10 * ((ss-1)->statScore > 0)
588-
: VALUE_DRAW;
587+
return (ss->ply >= MAX_PLY && !inCheck) ? evaluate(pos) : VALUE_DRAW;
589588

590589
// Step 3. Mate distance pruning. Even if we mate at the next move our score
591590
// would be at best mate_in(ss->ply+1), but if alpha is already bigger because

0 commit comments

Comments
 (0)