I am currently trying to implement magic bitboards into my chess engine. Let's just talk about rooks here. Given a square, what I can currently do is:
-Calculate the sliding moves on an empty board.
- Generate all blocker boards.
- Calculate the corresponding mve board.
What I am having trouble with is the using of this information. I have downloaded an array of length 64, populated by "magic numbers" for the rook squares. Can I use this? I can generate a index from this information, but it doesn't correspond to the correct move board. Any ideas? I am happy to share more information and code upon a request.