Module poirebot::game::pieces [−][src]
Modules
pawn |
Enums
Color | A chess piece set (white or black). |
Pieces | A chess piece. |
Constants
FILE_A | The A file. |
FILE_B | The B file |
FILE_C | The C file |
FILE_D | The D file |
FILE_E | The E file |
FILE_F | The F file |
FILE_G | The G file |
FILE_H | The H file |
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 |
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. |