예제 #1
0
 public Game(List <Player> players, int countOfDecks = 8)
 {
     Players  = players;
     drawer   = new Drawer();
     Croupier = new Croupier();
     Machine  = new ShuffleMachine(countOfDecks);
     Machine.Shuffle();
 }
예제 #2
0
        public void ShuffleTest()
        {
            ShuffleMachine machine = new ShuffleMachine();

            machine.Shuffle();
            Assert.IsFalse(machine.TrowCard() == new Card(0, 1));
            Assert.IsFalse(machine.TrowCard() == new Card(1, 2));

            Assert.Pass();
        }