mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
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:
+3
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user