Rename attacks_to() in attackers_to()

These functions return bitboard of attacking pieces,
not the attacks themselfs so reflect this in the name.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-09-20 09:31:48 +01:00
parent 049139d025
commit 0e0adfe2e1
4 changed files with 21 additions and 20 deletions
+3 -2
View File
@@ -2439,8 +2439,9 @@ namespace {
n = Slowdown;
for (i = 0; i < n; i++) {
Square s = Square(i&63);
if (count_1s(pos.attacks_to(s)) > 63)
std::cout << "This can't happen, but I put this string here anyway, in order to prevent the compiler from optimizing away the useless computation." << std::endl;
if (count_1s(pos.attackers_to(s)) > 63)
std::cout << "This can't happen, but I put this string here anyway, in order to "
"prevent the compiler from optimizing away the useless computation." << std::endl;
}
}