Exemplo n.º 1
0
        // Game Set up
        public void GameSetup()
        {
            // Ask from the first player to last
            for (int i = 0; i < playerController.NumberOfPlayers; i++)
            {
                gameView.AskToPlacePieceInitially(playerController.GetPlayerName((byte)i));
                // Get players input
                try
                {
                    Console.ReadLine();
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }
            }

            // Ask from the last player to first
            for (int i = playerController.NumberOfPlayers - 1; i >= 0; i--)
            {
                gameView.AskToPlacePieceInitially(playerController.GetPlayerName((byte)i));
                // Get players input
                try
                {
                    Console.ReadLine();
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }
            }
        }