private void addPlayer( Player player ) { if (this.playerIndex < this.players.Length) { this.players[this.playerIndex++] = player; } }
private static void testPlayer() { Console.WriteLine("# test Player"); Player player = new Player("Nemecsek Erno"); player.addCard(new Card(CardRank.King, CardSuit.Acorns)); player.addCard(new Card(CardRank.r7, CardSuit.Hearts)); player.addCard(new Card(CardRank.r8, CardSuit.Bells)); Console.WriteLine(player); }