3 ms·
How I programmed a chess engine in C++ from scratch using (magic) bitboards. Explains how I dealt with handling leaping pieces, sliding pieces, pseudo-legal mov
by coinfused 3y ago
How I programmed a chess engine in C++ from scratch using (magic) bitboards. Explains how I dealt with handling leaping pieces, sliding pieces, pseudo-legal moves, en-passant, castling, check evasions, move selection and alpha-beta pruning. I also explain how I tested for correctness.