class Pawn

Defined in:

pieces/pawn.cr

Constructors

Instance Method Summary

Instance methods inherited from class ChessMan

character : Char character, character=(character : Char) character=, draw draw, en_passant : Bool en_passant, en_passant=(en_passant : Bool) en_passant=, moved : Bool moved, moved=(moved : Bool) moved=, valid?(board : Board, from_x, from_y, to_x, to_y) valid?, value : Int32 value, value=(value : Int32) value=, white : Bool | Nil white, white=(white : Bool | Nil) white=

Constructor methods inherited from class ChessMan

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

Constructor Detail

def self.new(white = true) #

[View source]

Instance Method Detail

def valid?(board : Board, from_x, from_y, to_x, to_y) #

[View source]