示例#1
2
 public Player(String name, Random random, Game game)
 {
     this.name = name;
     this.random = random;
     this.game = game;
     this.cards = new Deck(new Card[] { });
     game.AddProgress(name + " has just joined the game");
 }
示例#2
0
        public Deck DoYouHaveAny(Values value)
        {
            Deck cardsIHave = cards.PullOutValues(value);

            game.AddProgress(Name + " has " + cardsIHave.Count + " " + Card.Plural(value));
            return(cardsIHave);
        }
示例#3
0
 public Player(String name, Random random, Game game)
 {
     this.name   = name;
     this.random = random;
     this.game   = game;
     this.cards  = new Deck(new Card[] { });
     game.AddProgress(name + " has just joined the game");
 }