예제 #1
0
 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());
     }
 }
예제 #2
0
 public Game()
 {
     stockpile   = new Stockpile();
     discardpile = new Discardpile(stockpile);
     players     = new Player[] { new Human(stockpile, discardpile), new AI(stockpile, discardpile) };
 }
예제 #3
0
 public Human(Stockpile stockpile, Discardpile discardpile) : base(stockpile, discardpile)
 {
     name = "User";
 }
예제 #4
0
 public AI(Stockpile stockpile, Discardpile discardpile) : base(stockpile, discardpile)
 {
     name = "AI";
 }