We should update the board representation to include a square-level list to simplify operation of something like:
Get piece at a4
Say we want to find any supporting pawns for a Knight on c6, then we only have to ask if there are pawns on b5 or d5, rather than check through the list of bitboards for pawns to see if any exist on the mentioned squares.
We should update the board representation to include a square-level list to simplify operation of something like:
a4
Say we want to find any supporting pawns for a Knight on
c6
, then we only have to ask if there are pawns onb5
ord5
, rather than check through the list of bitboards for pawns to see if any exist on the mentioned squares.