- Square RDeltas[] = { DELTA_N, DELTA_E, DELTA_S, DELTA_W };
- Square BDeltas[] = { DELTA_NE, DELTA_SE, DELTA_SW, DELTA_NW };
-
- RAttacks[0] = RookTable;
- BAttacks[0] = BishopTable;
-
- init_magic_bitboards(RAttacks, RMagics, RMasks, RShifts, RDeltas);
- init_magic_bitboards(BAttacks, BMagics, BMasks, BShifts, BDeltas);
+ init_magic_bitboards(ROOK, RAttacks, RMagics, RMasks, RShifts);
+ init_magic_bitboards(BISHOP, BAttacks, BMagics, BMasks, BShifts);