]> git.sesse.net Git - stockfish/commit
Simplify pseudo_legal()
authorMarco Costalba <mcostalba@gmail.com>
Mon, 10 Mar 2014 07:38:23 +0000 (08:38 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 10 Mar 2014 07:38:23 +0000 (08:38 +0100)
commitd2a8ba329940655e4683a67a2528a92717700732
tree151ea4a51d054692947e3c7f174ad08fb46c7182
parent20ff12e1be907b5a91143613559ea13ff0b79647
Simplify pseudo_legal()

Big simplification of pawn move check.

Code has been tested with a brute force approach: for
every position reached during a bench search, the function
has been called for each combinations of Move(from, to)
and verified the result is the same of old code.

Actually this function is very critical becuase is the
one that ensures corrupted TT moves are discarded, so
to properly test it a simple bench is not enough.

Verified also speed is not changed.

No functional chnage.
src/position.cpp