1 comment

[ 2.9 ms ] story [ 12.5 ms ] thread
An article on 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.