I think shiftSquareByDirection() would probably be more adequately named as getSquareInDirection(). However, this also is bad naming because this function returns a bitboard representation of a square, so figure out a way to make all of this clear. The most accurate name would be getSqaureInDirectionAsBitboard()
I think
shiftSquareByDirection()
would probably be more adequately named asgetSquareInDirection()
. However, this also is bad naming because this function returns a bitboard representation of a square, so figure out a way to make all of this clear. The most accurate name would begetSqaureInDirectionAsBitboard()