class Chess::Board

Defined in:

board.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def cells : StaticArray(StaticArray(Piece | Nil, 8), 8) #

[View source]
def empty?(position : Position) : Bool #

[View source]
def get(position : Position) : Piece | Nil #

[View source]
def in_bounds?(position : Position) : Bool #

[View source]
def move(piece : Piece, position : Position) #

[View source]
def reset : Nil #

[View source]
def setup_new_game #

[View source]
def valid_move?(piece : Piece, position : Position) : Bool #

[View source]