Example #1
0
        static void Main(string[] args)
        {
            ConsoleColor oldColor = Console.ForegroundColor;

            Console.SetCursorPosition(10, 2);
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("Welcome to Tic Tac Toe");

            var ticTacToe = new TicTacToe();

            ticTacToe.Run();


            Console.ForegroundColor = oldColor;


            Console.SetCursorPosition(20, 25);
            Console.WriteLine("Thank you for playing");
            Console.ReadLine();

            Console.WriteLine("PlayerGame");
            Console.WriteLine("_boardRenderer.AddMov");

            Console.WriteLine("You Won!!");
        }
Example #2
0
        static void Main(string[] args)
        {
            ConsoleColor pink = Console.ForegroundColor;

            Console.SetCursorPosition(14, 2);
            Console.ForegroundColor = ConsoleColor.DarkCyan;
            Console.WriteLine("Welcome to Tic Tac Toe");

            var ticTacToe = new TicTacToe();

            ticTacToe.Run();
        }
Example #3
0
        static void Main(string[] args)
        {
            ConsoleColor oldColor = Console.ForegroundColor;

            Console.SetCursorPosition(5, 2);
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("Welcome to Tic Tac Toe");

            var ticTacToe = new TicTacToe();

            ticTacToe.Run();


            Console.ForegroundColor = oldColor;


            Console.SetCursorPosition(20, 25);
            Console.WriteLine("Thank you for playing");
            Console.ReadLine();
        }
Example #4
0
        static void Main(string[] args)
        {
            ConsoleColor oldColour = Console.ForegroundColor;

            Console.SetCursorPosition(50, 2);
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("GameXO");

            var ticTacToe = new TicTacToe();

            ticTacToe.Run();
            ticTacToe.Run();
            ticTacToe.Run();
            ticTacToe.Run();
            ticTacToe.Run();
            ticTacToe.Run();



            Console.SetCursorPosition(20, 25);
            Console.ForegroundColor = oldColour;
            Console.WriteLine("Thank you for playing The winner Is Obvious enough");
            Console.ReadLine();
        }