class

LxChess::MoveSet

Inherits Reference < Object

Constructors

new(piece : LxChess::Piece, board : LxChess::Board)
Source

Instance methods

add_offset(x : Int16, y : Int16)
Source
add_offset(offset : Int16, captures : Bool = true)

Does not check for crossing border edges

Source
add_offsets(offsets : Array(NamedTuple(x: Int32, y: Int32)))
Source
add_vector(x : Int16, y : Int16, limit : Int16, captures : Bool = true)
Source
board
Source
board=(board : Board)
Source
moves
Source
moves=(moves : Array(Int16))
Source
origin
Source
piece
Source
piece=(piece : Piece)
Source