Exemple #1
0
        private void GenerateClients()
        {
            int i;

            for (i = 1; i < 100; i++)
            {
                Ai Dude = new Ai(day, playerEins);
                if (playerEins.CheckPitchers() >= 0)
                {
                    switch (Dude.DidTheyBuy())
                    {
                    case 1:
                        IncreaseCupsBought();
                        if ((cupsBought >= 1) && (cupsBought % 12 == 0) && (playerEins.CheckPitchers() > 0))
                        {
                            playerEins.UsePitcher();
                        }
                        else if (playerEins.CheckPitchers() == 0)
                        {
                            cupsBought = cupsBought - 1;
                            break;
                        }
                        else
                        {
                            break;
                        }
                        break;

                    default:
                        break;
                    }
                }
                else
                {
                    break;
                }
            }
        }