Exemplo n.º 1
0
 private static void testDeck(Random rand)
 {
     Console.WriteLine("# testDeck");
     Deck deck = new Deck(rand);
     Console.WriteLine(deck);
     Console.WriteLine(deck.topCard());
     Console.WriteLine(deck.topCard());
     Console.WriteLine(deck.topCard());
     Console.WriteLine(deck);
     deck.rotate();
     Console.WriteLine(deck);
 }
Exemplo n.º 2
0
 public Game(Random rand)
 {
     this.deck = new Deck(rand);
     this.players = new Player[Game.PLAYER_NUM];
     this.playerIndex = 0;
 }