class LxChess::Piece
- LxChess::Piece
- Reference
- Object
Defined in:
lx_chess/piece.crConstant Summary
-
BISHOP =
4 -
FEN_SYMBOLS =
"PKQRBN--pkqrbn" -
KING =
1 -
KNIGHT =
5 -
NAMES =
["Pawn", "King", "Queen", "Rook", "Bishop", "Knight"] -
PAWN =
0 -
QUEEN =
2 -
ROOK =
3 -
SYMBOLS =
"♙♔♕♖♗♘--♟♚♛♜♝♞"
Constructors
Class Method Summary
Instance Method Summary
- #black?
- #color
- #fen_symbol
- #id
- #index : Int16
- #index=(index : Int16)
- #king?
- #name
- #pawn?
- #rook?
- #symbol(force_black = false)
- #white?