private static void PrintBoard(TicTacToeBoard board, Player humanPlayer) { Console.Clear(); var cursorTop = Console.WindowHeight - 9; Console.SetCursorPosition(0, cursorTop); Console.Write("TIC TAC TOE\n"); Console.Write("\n"); Console.Write("Players:\n"); Console.Write("\n"); Console.Write($"* You: {TicTacToeBoard.FromPlayerToString(humanPlayer)}\n"); Console.Write($"* Computer: {TicTacToeBoard.FromPlayerToString(humanPlayer.ToOppositePlayer())}\n"); Console.Write("\n"); Console.Write("How to play:\n"); Console.Write("\n"); Console.Write("* Select an empty cell and click enter to make your move.\n"); Console.Write("* Type Q to exit.\n"); Console.Write("\n\n"); Console.Write(board); Console.Write("\n"); }
private static void DrawMove(Player humanPlayer) { Console.CursorVisible = false; Console.Write(TicTacToeBoard.FromPlayerToString(humanPlayer)); }