class

LxChess::TermGame

Inherits Reference < Object

Represents a chess game played through the terminal

Constants

HELP_TEXT = " Commands:\n flip - Flip the board\n moves [SQUARE] - Show the moves (optionally for a given square)\n [SAN] - Standard algebraic notation (make a move)\n [FROM] [TO] - specify move by coordinates"
LOG_LENGTH = 20

Constructors

new(fen : Fen, players = [Player.new, Player.new])
Source
new(pgn : LxChess::PGN = PGN.new, players = [Player.new, Player.new])
Source

Instance methods

changes
Source
changes=(changes : Array(Array(LxChess::Change)))
Source
clear_screen
Source
draw
Source
game
Source
game=(game : Game)
Source
gb=(gb : TermBoard)
Source
make_move(from : String, to : String, promotion : Char | Nil = nil)
Source
make_move(from : Int16, to : Int16, promotion : Char | Nil = nil)
Source
pgn=(pgn : PGN)
Source
run!
Source
show_help
Source
term
Source
term=(term : Terminal)
Source
update
Source