megalodon-chess / megalodon

Chess engine with the UCI protocol
https://megalodon-chess.github.io/megalodon/
GNU General Public License v3.0
14 stars 0 forks source link

Attackers #23

Closed ArjunSahlot closed 3 years ago

ArjunSahlot commented 3 years ago

Describe changes

Add a function that returns the number of attackers attacking a certain square.

Additional info

New member: Bitboard::attackers(moves, square)