Fixed minor UI issue
This commit is contained in:
parent
142fd40d3a
commit
3f039a77e2
|
@ -42,7 +42,10 @@ proc play(treeA, treeB: Move) =
|
|||
moves = treeB
|
||||
location = where(moves.state, moves.state != board.map, 3).index(Self.uint8)
|
||||
board.place(Self, location.row, location.col)
|
||||
stdout.write("\x1Bc")
|
||||
styledEcho fgCyan, styleBright, "Computer chose ", fgYellow, $board.map.getIndex(location.row, location.col)
|
||||
else:
|
||||
stdout.write("\x1Bc")
|
||||
while board.get() == Playing:
|
||||
styledEcho fgBlue, styleBright, "Tic Tac Bot v1.0"
|
||||
echo board, "\n"
|
||||
|
|
Loading…
Reference in New Issue