How do I find bitboard attack maps non-manually? I am writing a C++ chess engine based on the magic bitboard, where ordering for bitboards is from LSB to MSB in Little-Endian Rank-File mapping. I'd like to have a 6x64 dimension 2D array for all possible attack sets for each piece on every square to save time during program execution.
Is there a resource that has these bitboards already defined so that I don't have to spend several hours constructing them manually, or is there a way to generate the attack sets with a program?
Stockfish (https://stockfishchess.org/download/) is open source and uses magic bitboards.
Crafty (https://craftychess.com/) uses bitboards and is heavily commented.
There are other using bitboards, but these two are the best.
Hopefully this helps.