Esempio n. 1
0
        public void DisplayBoard(Model model)
        {
            Console.Clear();

            Console.WriteLine(" --- TicTacToe ---");
            Console.WriteLine("   1   2   3  ");
            Console.WriteLine($"A  {model.GetOwner("A1")} | {model.GetOwner("A2")} | {model.GetOwner("A3")} ");
            Console.WriteLine("  -----------");
            Console.WriteLine($"B  {model.GetOwner("B1")} | {model.GetOwner("B2")} | {model.GetOwner("B3")} ");
            Console.WriteLine("  -----------");
            Console.WriteLine($"C  {model.GetOwner("C1")} | {model.GetOwner("C2")} | {model.GetOwner("C3")} ");
        }