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)
SourceInstance methods
bg_dark
Sourcebg_dark=(bg_dark : Symbol)
Sourcebg_light
Sourcebg_light=(bg_light : Symbol)
Sourceboard_theme=(theme : String)
Sourceclear
Sourcedraw(io = STDOUT)
Sourcefg_dark
Sourcefg_dark=(fg_dark : Symbol)
Sourcefg_light
Sourcefg_light=(fg_light : Symbol)
Sourcefiles
Sourceflip!
Sourceflipped
Sourceflipped=(flipped : Bool)
Sourceheight
Sourcehighlight(indicies : Array(Int16), theme : String = "yellow")
Sourceranks
Sourceset_scheme(bg_dark : Symbol, bg_light : Symbol, fg_dark : Symbol, fg_light : Symbol)
Sourceshow_color
Sourceshow_color=(show_color : Bool)
Sourceshow_symbols
Sourceshow_symbols=(show_symbols : Bool)
Sourcewidth
Source