]> git.sesse.net Git - stockfish/commit
Stop search if only 1 legal move
authorjhellis3 <jhellis3@gmail.com>
Sun, 3 Mar 2013 21:13:05 +0000 (15:13 -0600)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 4 Mar 2013 07:30:55 +0000 (08:30 +0100)
commit3ce43c20dee3d0c7afc4ff3b4c67e0530ab2138f
tree749384fa1f52c99cec048acbf7a0a71e7b8eba00
parentdef50020ad0f0c093ae66a2725203a1000931d1a
Stop search if only 1 legal move

There is no point searching a move that is forced.
It wastes time while allowing computer opponents to
fill hash with 100% accuracy.

[edit: Condition moved together with "easy move" ones]

Bench identical: 4922272
src/search.cpp