示例#1
0
 public void Init()
 {
     _Deck = new Deck(
         new[]
         {
             King.Of(CardSuit.Hearts),
             Jack.Of(CardSuit.Spades)
         }
         );
     _Players = new TwoPlayers();
     _Game = new Game(_Players);
 }
示例#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);
        }
示例#3
0
 public Game(TwoPlayers players)
 {
     _Players = players;
 }
示例#4
0
 public void Init()
 {
     _Players = new TwoPlayers();
     _Round = new Round();
 }