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.
28 lines
671 B
28 lines
671 B
using System;
|
|
using System.Collections.Generic;
|
|
using TheGameExtreme.model.card;
|
|
using TheGameExtreme.model.card.cardType;
|
|
using TheGameExtreme.model.deck;
|
|
|
|
namespace TheGameExtreme.model.piles
|
|
{
|
|
public class ClassicPiles : Piles
|
|
{
|
|
|
|
public ClassicPiles(int nbPile) : base(nbPile)
|
|
{
|
|
for (int i = 0; i < nbPile; i++)
|
|
{
|
|
if (i < (nbPile * 0.5))
|
|
{
|
|
ListOrderedStacks[i].Push(new ClassicCard(0m));
|
|
}
|
|
else
|
|
{
|
|
ListOrderedStacks[i].Push(new ClassicCard(100m));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|