class LxChess::TermBoard
- LxChess::TermBoard
- Reference
- Object
Defined in:
lx_chess/term_board.crConstant Summary
-
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
Instance Method Summary
- #bg_dark : Symbol
- #bg_dark=(bg_dark : Symbol)
- #bg_light : Symbol
- #bg_light=(bg_light : Symbol)
- #board_theme=(theme : String)
- #clear
- #draw(io = STDOUT)
- #fg_dark : Symbol
- #fg_dark=(fg_dark : Symbol)
- #fg_light : Symbol
- #fg_light=(fg_light : Symbol)
- #files
- #flip!
- #flipped : Bool
- #flipped=(flipped : Bool)
- #height
- #highlight(indicies : Array(Int16), theme : String = "yellow")
- #ranks
- #set_scheme(bg_dark : Symbol, bg_light : Symbol, fg_dark : Symbol, fg_light : Symbol)
- #show_color : Bool
- #show_color=(show_color : Bool)
- #show_symbols : Bool
- #show_symbols=(show_symbols : Bool)
- #width
Constructor Detail
Instance Method Detail
def set_scheme(bg_dark : Symbol, bg_light : Symbol, fg_dark : Symbol, fg_light : Symbol)
#