class

LxChess::TermBoard

Inherits Reference < Object

Constants

LETTERS = ('a'..'z').to_a
THEMES = {"yellow" => {light: :light_yellow, dark: :yellow}, "blue" => {light: :light_blue, dark: :blue}, "green" => {light: :light_green, dark: :green}, "cyan" => {light: :light_cyan, dark: :cyan}, "red" => {light: :light_red, dark: :red}, "magenta" => {light: :light_magenta, dark: :magenta}, "gray" => {light: :light_gray, dark: :dark_gray}}

Constructors

new(board : Board)
Source

Instance methods

bg_dark
Source
bg_dark=(bg_dark : Symbol)
Source
bg_light
Source
bg_light=(bg_light : Symbol)
Source
board_theme=(theme : String)
Source
clear
Source
draw(io = STDOUT)
Source
fg_dark
Source
fg_dark=(fg_dark : Symbol)
Source
fg_light
Source
fg_light=(fg_light : Symbol)
Source
files
Source
flip!
Source
flipped
Source
flipped=(flipped : Bool)
Source
height
Source
highlight(indicies : Array(Int16), theme : String = "yellow")
Source
ranks
Source
set_scheme(bg_dark : Symbol, bg_light : Symbol, fg_dark : Symbol, fg_light : Symbol)
Source
show_color
Source
show_color=(show_color : Bool)
Source
show_symbols
Source
show_symbols=(show_symbols : Bool)
Source
width
Source