]> git.sesse.net Git - stockfish/commitdiff
Retire attackers_to(Square s, Color c)
authorMarco Costalba <mcostalba@gmail.com>
Sun, 20 Sep 2009 09:47:59 +0000 (10:47 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 20 Sep 2009 09:47:59 +0000 (10:47 +0100)
Use the definition in the few places where is needed.

As a nice side effect there is also an optimization in
generate_evasions() where the bitboard of enemy pieces
is computed only once and out of a tight loop.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found