diff --git a/src/player.nim b/src/player.nim index bd9482d..ec47669 100644 --- a/src/player.nim +++ b/src/player.nim @@ -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"