class LxChess::MoveSet

Defined in:

lx_chess/move_set.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(piece : LxChess::Piece, board : LxChess::Board) #

[View source]

Instance Method Detail

def add_offset(x : Int16, y : Int16) #

[View source]
def add_offset(offset : Int16, captures : Bool = true) #

Does not check for crossing border edges


[View source]
def add_offsets(offsets : Array(NamedTuple(x: Int32, y: Int32))) #

[View source]
def add_vector(x : Int16, y : Int16, limit : Int16, captures : Bool = true) #

[View source]
def board : Board #

[View source]
def board=(board : Board) #

[View source]
def moves : Array(Int16) #

[View source]
def moves=(moves : Array(Int16)) #

[View source]
def origin #

[View source]
def piece : Piece #

[View source]
def piece=(piece : Piece) #

[View source]