1 comment

[ 4.5 ms ] story [ 389 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.