You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
654 B

using System;
using TheGameExtreme.model.card;
using TheGameExtreme.model.card.cardType;
namespace TheGameExtreme.model.deck
{
public class DizaineDeck : Deck
{
public DizaineDeck()
{
Card card;
decimal d;
Random random = new Random();
while (deck.Count < 99)
{
d = (decimal)(random.Next(1, 49)) / 10;
// Recherche dicotomique pour insertion -> si déjà insérer break et grâce au while, il continuera le bon nombre de fois.
card = new ClassicCard(d);
deck.Add(card);
}
}
}
}