Module poirebot::game::pieces[][src]

Enums

Color

A chess piece set (white or black).

Pieces

A chess piece.

Functions

get_castling_rook_move

When the king moves, find whether it was a castling action. If it is a castling move, return the corresponding Move for the rook.

is_pawn_two_step

Whether the move was a pawn “two-step” (when they move by 2 from their original position). This function assumes the piece is already determined to be a pawn.