LxChess::Piece
Inherits Reference < Object
Constants
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
new(id : Int8 = 0)
SourceClass methods
from_fen(fen : Char)
SourceInstance methods
black?
Sourcecolor
Sourcefen_symbol
Sourceid
Sourceindex
Sourceindex=(index : Int16)
Sourceking?
Sourcename
Sourcepawn?
Sourcerook?
Sourcesymbol(force_black = false)
Sourcewhite?
Source