abstract class ChessMan

Direct Known Subclasses

Defined in:

pieces/chessman.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(white : Bool | Nil = nil, character : Char = ' ', value : Int32 = 0, en_passant : Bool = false) #

[View source]

Instance Method Detail

def character : Char #

[View source]
def character=(character : Char) #

[View source]
def draw #

[View source]
def en_passant : Bool #

[View source]
def en_passant=(en_passant : Bool) #

[View source]
def moved : Bool #

[View source]
def moved=(moved : Bool) #

[View source]
abstract def valid?(board : Board, from_x, from_y, to_x, to_y) #

[View source]
def value : Int32 #

[View source]
def value=(value : Int32) #

[View source]
def white : Bool | Nil #

[View source]
def white=(white : Bool | Nil) #

[View source]