示例#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 Discardpile(Stockpile stockpile)
 {
     this.stockpile = stockpile;
     top            = stockpile.TakeCard();
 }
示例#3
0
 public Game()
 {
     stockpile   = new Stockpile();
     discardpile = new Discardpile(stockpile);
     players     = new Player[] { new Human(stockpile, discardpile), new AI(stockpile, discardpile) };
 }
示例#4
0
 public Human(Stockpile stockpile, Discardpile discardpile) : base(stockpile, discardpile)
 {
     name = "User";
 }
示例#5
0
 public AI(Stockpile stockpile, Discardpile discardpile) : base(stockpile, discardpile)
 {
     name = "AI";
 }