class LxChess::TermBoard

Defined in:

lx_chess/term_board.cr

Constant 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

Constructor Detail

def self.new(board : Board) #

[View source]

Instance Method Detail

def bg_dark : Symbol #

[View source]
def bg_dark=(bg_dark : Symbol) #

[View source]
def bg_light : Symbol #

[View source]
def bg_light=(bg_light : Symbol) #

[View source]
def board_theme=(theme : String) #

[View source]
def clear #

[View source]
def draw(io = STDOUT) #

[View source]
def fg_dark : Symbol #

[View source]
def fg_dark=(fg_dark : Symbol) #

[View source]
def fg_light : Symbol #

[View source]
def fg_light=(fg_light : Symbol) #

[View source]
def files #

[View source]
def flip! #

[View source]
def flipped : Bool #

[View source]
def flipped=(flipped : Bool) #

[View source]
def height #

[View source]
def highlight(indicies : Array(Int16), theme : String = "yellow") #

[View source]
def ranks #

[View source]
def set_scheme(bg_dark : Symbol, bg_light : Symbol, fg_dark : Symbol, fg_light : Symbol) #

[View source]
def show_color : Bool #

[View source]
def show_color=(show_color : Bool) #

[View source]
def show_symbols : Bool #

[View source]
def show_symbols=(show_symbols : Bool) #

[View source]
def width #

[View source]