Rename piece_attacks() in piece_attacks_from()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 20 Sep 2009 09:26:54 +0000 (10:26 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 20 Sep 2009 09:26:54 +0000 (10:26 +0100)
commit6845397c5cbec26f3a0442091e6a48d356719c3c
tree89da0be05f73bcdc003ade9c541d3be055979e84
parentf74f42b2982e25e180417948771843e8bb6bd4b7
Rename piece_attacks() in piece_attacks_from()

It is a bit longer but much easier to understand especially
for people new to the sources. I remember it was not trivial
for me to understand the returned attack bitboard refers to
attacks launched from the given square and not attacking the
given square.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/endgame.cpp
src/evaluate.cpp
src/movegen.cpp
src/pawns.cpp
src/position.cpp
src/position.h
src/search.cpp