class

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)
Source

Class methods

from_fen(fen : Char)
Source

Instance methods

black?
Source
color
Source
fen_symbol
Source
index
Source
index=(index : Int16)
Source
king?
Source
name
Source
pawn?
Source
rook?
Source
symbol(force_black = false)
Source
white?
Source