]> git.sesse.net Git - stockfish/commit
Fix sending of best move during an infinite search
authorMarco Costalba <mcostalba@gmail.com>
Sun, 10 Jan 2010 11:38:59 +0000 (12:38 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 10 Jan 2010 12:18:43 +0000 (13:18 +0100)
commit55745f410547f22b1edce873b38cc3ce5f3ace5f
tree64735dba1a37d96b5da6d68e4416adb8448bcd13
parent968c3de8e0acd46a8b55225dda1ed607ce24f380
Fix sending of best move during an infinite search

According to UCI standard once engine receives 'go infinite'
command it should search until the "stop" command and do not exit
the search without being told so, even if PLY_MAX has been reached.

Patch is quite invasive because it cleanups some hacks used
by fixed depth and fixed nodes modes, mainly during benchmarks.

Bug found by Pascal Georges.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/benchmark.cpp
src/search.cpp