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)
commit84d6fe0f31069bc612f856ab7cd54d9aad7907ca
treef2527ef47544e3ba832b79546084f226ddb9bdb3
parent6845397c5cbec26f3a0442091e6a48d356719c3c
Retire attackers_to(Square s, Color c)

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>
src/movegen.cpp
src/position.cpp
src/position.h