Ejemplo n.º 1
0
 public void Init()
 {
     _Deck = new Deck(
         new[]
         {
             King.Of(CardSuit.Hearts),
             Jack.Of(CardSuit.Spades)
         }
         );
     _Players = new TwoPlayers();
     _Game = new Game(_Players);
 }
Ejemplo n.º 2
0
        public void BePickedByPlayers()
        {
            var players = new TwoPlayers();
            var hands = new Hands();
            hands.HandOne.Add(Jack.Of(CardSuit.Spades));
            hands.HandTwo.Add(King.Of(CardSuit.Hearts));

            hands.To(players.PlayerOne, players.PlayerTwo);

            Assert.AreEqual(1, players.PlayerOne.Hand().Count);
            Assert.AreEqual(1, players.PlayerTwo.Hand().Count);
        }
Ejemplo n.º 3
0
 public Game(TwoPlayers players)
 {
     _Players = players;
 }
Ejemplo n.º 4
0
 public void Init()
 {
     _Players = new TwoPlayers();
     _Round = new Round();
 }