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.

19 lines
560 B

using System;
using TheGameExtreme.model.card.cardType;
namespace TheGameExtreme.model.deck
{
public class Decimal1Deck : Deck
{
public Decimal1Deck(int nbCard, int borneMin, int borneMax) : base(nbCard)
{
Random random = new Random();
while (deck.Count < nbCard && deck.Count < (borneMax - borneMin))
{
decimal value = random.Next(borneMin, borneMax) * 0.1m;
InsertionDichotomique(deck, 0, deck.Count - 1, new ClassicCard(value));
}
}
}
}