Move printing of best move on think
authorMarco Costalba <mcostalba@gmail.com>
Thu, 30 Dec 2010 14:45:43 +0000 (15:45 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 30 Dec 2010 15:12:51 +0000 (16:12 +0100)
commit8e75384dd283d3af63c35b0ff36ba30809fcd173
treee3b57969ca306371dad6172e9ffcb7781fb96340
parentdb4a68a99b8e5d850e845357d89602dfa47a45a8
Move printing of best move on think

It seems a more appropiate place (IMHO) and helps to clarify
that idle_loop() should return a move, not a score.

Fix also handling of stalemate positions (we were not
sending any score) and we don't need to wait on "ponderhit",
this is done when returning in think().

No functional change.

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