]> git.sesse.net Git - stockfish/commitdiff
Start searching for a repetition from the 4th ply behind
authorAram Tumanian <aram_tumanian@ukr.net>
Fri, 11 Nov 2016 15:46:21 +0000 (17:46 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 19 Nov 2016 09:20:28 +0000 (10:20 +0100)
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.


No differences found