diff --git a/BitBoard.cpp b/BitBoard.cpp index 51973ae..00895e1 100644 --- a/BitBoard.cpp +++ b/BitBoard.cpp @@ -45,10 +45,10 @@ BitBoard BitBoard::fileFill() const { return northFill() | southFill(); } -BitBoard BitBoard::kingAttacks(const BitBoard bb) { - BitBoard result = bb.east() | bb.west() | bb; +BitBoard BitBoard::kingAttacks(const BitBoard kings) { + BitBoard result = kings.east() | kings.west() | kings; result |= (result.north() | result.south()); - result ^= bb; + result ^= kings; return result; } diff --git a/BitBoard.hpp b/BitBoard.hpp index 14ae54b..fba4f63 100644 --- a/BitBoard.hpp +++ b/BitBoard.hpp @@ -107,7 +107,7 @@ public: BitBoard fileFill() const; static BitBoard bishopAttacks(BitBoard pos, BitBoard empty); - static BitBoard kingAttacks(BitBoard bb); + static BitBoard kingAttacks(BitBoard kings); static BitBoard pawnNorthAttacks(BitBoard pawns, BitBoard targets); static BitBoard pawnSouthAttacks(BitBoard pawns, BitBoard targets);