mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
797602938d
A position can never repeat the one on the previous move. Thus we can start searching for a repetition from the 4th ply behind. In the case: std::min(st->rule50, st->pliesFromNull) < 4 We don't need to do any more calculations. This case happens very often - in more than a half of all calls of the function. No functional change.