static void Main(string[] args) { TicTacToeGame game = new TicTacToeGame(); game.CreateBoard(); char choice = game.Choice(); game.ShowBoard(); game.PlayerMovement(choice); game.Toss(); }
static void Main(string[] args) { while (CONTINUE) { Console.WriteLine("\nWelcome to TicTacToe Game !"); ticTacToe.CreateGameBoard(); ticTacToe.ShowBoard(); ticTacToe.ChooseInput(); string firstMoveBy = ticTacToe.CheckWhoPlaysFirst(); if (firstMoveBy == ticTacToe.player[1]) { ticTacToe.ComputerMove(); } else { ticTacToe.ChoosePositionOnBoard(); } ticTacToe.ShowBoard(); ticTacToe.PlayTillGameOver(firstMoveBy); playAgain(); } }