mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Improve comments about DEPTH constants
Also "fix" movepicker to allow depths between CHECKS and NO_CHECKS, which makes them easier to tweak (not that they get tweaked hardly ever) (This was more beneficial when there was a third stage to DEPTH_QS, but it's still an improvement now) closes https://github.com/official-stockfish/Stockfish/pull/5205 No functional change
This commit is contained in:
+2
-2
@@ -361,8 +361,8 @@ top:
|
||||
if (select<Next>([]() { return true; }))
|
||||
return *(cur - 1);
|
||||
|
||||
// If we did not find any move and we do not try checks, we have finished
|
||||
if (depth != DEPTH_QS_CHECKS)
|
||||
// If we found no move and the depth is too low to try checks, then we have finished
|
||||
if (depth <= DEPTH_QS_NORMAL)
|
||||
return Move::none();
|
||||
|
||||
++stage;
|
||||
|
||||
Reference in New Issue
Block a user