]> git.sesse.net Git - stockfish/commitdiff
Speed-up generate<LEGAL>
authorMarco Costalba <mcostalba@gmail.com>
Tue, 11 Sep 2012 18:00:58 +0000 (20:00 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 11 Sep 2012 18:24:31 +0000 (20:24 +0200)
The trick here is to check for legality only in the
(rare) cases we have pinned pieces or a king move
or an en-passant.

This trick is able to increase the speed of perft
of more then 20%!

No functional change.


No differences found