I am currently starting to work on a chess engine.
With padded array it is easy to check for offboard squares, but what if I want to use bitboards to represent the board, how should I make this validation? should I keep a padded array (along with the bitboards) for those checks or there are maybe another more effiecient / bitboard oriented solutions ?
Thx