class LxChess::Piece

Defined in:

lx_chess/piece.cr

Constant 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

Constructor Detail

def self.new(id : Int8 = 0) #

[View source]

Class Method Detail

def self.from_fen(fen : Char) #

[View source]

Instance Method Detail

def black? #

[View source]
def color #

[View source]
def fen_symbol #

[View source]
def id #

[View source]
def index : Int16 #

[View source]
def index=(index : Int16) #

[View source]
def king? #

[View source]
def name #

[View source]
def pawn? #

[View source]
def rook? #

[View source]
def symbol(force_black = false) #

[View source]
def white? #

[View source]