Exemple #1
0
        // Game Runner
        public void GameRunner()
        {
            do
            {
                // Counter
                TotalTurns++;

                // Each normal turn
                gameView.PrintTurn(TotalTurns, PlayerToPlay(TotalTurns));
                gameView.AskForPlayerMove();
                // Get players input
                try
                {
                    Console.ReadLine();
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }
            } while (!HasWinner());
        }