]> git.sesse.net Git - stockfish/commitdiff
Fix moveCount after legality check delay
authorMarco Costalba <mcostalba@gmail.com>
Sat, 28 May 2011 09:35:52 +0000 (10:35 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 28 May 2011 10:16:00 +0000 (11:16 +0100)
We really want PV moves and also Split Point moves to be
legal to avoid messing the move counter and corresonding
PV move detection or shared Split Point's counter variable.

This fixes a real bug where a position with only one move
allowed returns bestValue == -VALUE_INFINITE if the move
turns out to be illegal.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found