Module boardrepr

Module boardrepr 

Source
Expand description

Chess board piece placement representations.

Structsยง

Mailbox
Classic 8x8 square board representation of Chess board. Mailbox is Square-Centric, meaning it indexes by square to get a piece, as opposed to a PieceSets which indexes by piece to get squares. Index starts at A1. A1 = idx 0 B1 = idx 1 A2 = idx 8 H7 = idx 63
PieceSets
A Piece-Centric representation of pieces on a chessboard. A Bitboard is used to encode the squares of each chess piece. PieceSets indexes by piece to get squares, as opposed to Mailbox which indexes by square to get a piece.