public Player(Stockpile stockpile, Discardpile discardpile) { this.stockpile = stockpile; this.discardpile = discardpile; deck = new List <Card>(); for (int i = 0; i < 5; i++) { deck.Add(stockpile.TakeCard()); } }
public Game() { stockpile = new Stockpile(); discardpile = new Discardpile(stockpile); players = new Player[] { new Human(stockpile, discardpile), new AI(stockpile, discardpile) }; }
public Human(Stockpile stockpile, Discardpile discardpile) : base(stockpile, discardpile) { name = "User"; }
public AI(Stockpile stockpile, Discardpile discardpile) : base(stockpile, discardpile) { name = "AI"; }