Beispiel #1
0
    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------


    // Use this for initialization
    void Start()
    {
        // Sets up the starting hands for each human and AI player
        // Need to add code to allow it to implment for AI
        // Means adding a way to make AI_Manager extend Player_Manager
        for (int i = 1; i < NumHumanPlayers + NumAI_Players + 1; i++)
        {
            if (i < NumHumanPlayers)
            {
                // Gives players 4 train cards
                for (int j = 0; j < 4; j++)
                {
                    humans.drawResource(i);
                }

                // Gives players 3 route cards
                for (int k = 0; k < 3; k++)
                {
                    humans.drawRoute(i);
                }
            }
        }
    }