This commit is contained in:
Alex Clink 2021-09-19 22:15:34 -04:00
parent ced238add0
commit f96c207066

View file

@ -5,6 +5,7 @@ require "./terminal"
require "./term_board"
module LxChess
# Represents a chess game played through the terminal
class TermGame
property gb : TermBoard
getter log
@ -18,6 +19,11 @@ module LxChess
clear_screen
end
def tick
draw
update
end
def update
input = gets || ""
@ -104,11 +110,6 @@ module LxChess
draw_prompt
end
def tick
draw
update
end
# ===================
# = Drawing methods =
# ===================