abstract class Chess::Piece

Direct Known Subclasses

Defined in:

piece.cr

Constructors

Instance Method Summary

Constructor Detail

def self.make_black : Piece #

[View source]
def self.make_white : Piece #

[View source]
def self.new(color : Color, position : Position = {-1, -1}) #

[View source]

Instance Method Detail

def black? : Bool #

[View source]
def captured? : Bool #

[View source]
def color : Color #

[View source]
abstract def directions : Array(Array(Position)) #

[View source]
def position : Position #

[View source]
def position=(position : Position) #

[View source]
def possible_moves(board : Board) : Array(Position) #

[View source]
abstract def value : Int32 #

[View source]
def white? : Bool #

[View source]