class LxChess::TermGame
- LxChess::TermGame
- Reference
- Object
Overview
Represents a chess game played through the terminal
Defined in:
lx_chess/term_game.crConstant Summary
-
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])
- .new(pgn : LxChess::PGN = PGN.new, players = [Player.new, Player.new])
Instance Method Summary
- #changes : Array(Array(LxChess::Change))
- #changes=(changes : Array(Array(LxChess::Change)))
- #clear_screen
- #draw
- #game : Game
- #game=(game : Game)
- #gb : TermBoard
- #gb=(gb : TermBoard)
- #log : Array(String)
- #make_move(from : String, to : String, promotion : Char | Nil = nil)
- #make_move(from : Int16, to : Int16, promotion : Char | Nil = nil)
- #pgn : PGN
- #pgn=(pgn : PGN)
- #run!
- #show_help
- #term : Terminal
- #term=(term : Terminal)
- #update