Fixed minor UI issue

This commit is contained in:
Nocturn9x 2023-01-13 02:38:50 +01:00
parent 142fd40d3a
commit 3f039a77e2
1 changed files with 3 additions and 0 deletions

View File

@ -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"