]> git.sesse.net Git - stockfish/commit - src/movegen.cpp
Do not make any assumption on the move in move_is_legal()
authorMarco Costalba <mcostalba@gmail.com>
Thu, 6 Jan 2011 12:33:40 +0000 (13:33 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 6 Jan 2011 12:33:40 +0000 (13:33 +0100)
commit2e46db436965e9f3c9c24d028cc6a8bfc85303d4
tree96ef0b2bc9ce3f99b06b1ed122b7e2bb4e621139
parent5fc8f86a4f37de0e919c163c81f04b8717a70d3f
Do not make any assumption on the move in move_is_legal()

We must be able to filter out also moves where move_is_ok()
is false.

And actually we are. Tested on all the default position injecting
a number from -1000000 to 1000000 casted to a Move.

No functional change.

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