Exemplo n.º 1
0
 public void Draw(int nCards)
 {
     for (int i = 0; i < nCards; i++)
     {
         hand.Add(OpsCard.Random());
     }
 }
Exemplo n.º 2
0
        static Game NewGame()
        {
            Disaster disaster = Disaster.Random();

            int            handCount = 5;
            List <OpsCard> hand      = new List <OpsCard>();

            for (int i = 0; i < handCount; i++)
            {
                hand.Add(OpsCard.Random());
            }

            Game game = new Game(disaster, hand);

            return(game);
        }