Esempio n. 1
0
        public void TestRoundIncrements()
        {
            // Arrange
            CreatePropperties();
            // Round 1
            Game.Call();
            Game.Check();
            // Round 2
            Game.Check();
            Game.Check();
            // Round 3
            Game.Check();
            Game.Check();
            // Round 4
            Game.Check();
            Game.Check();
            // Round 5
            Game.Check();
            Game.Check();

            var expected = 5;

            // Act
            var actual = Game.Hands[Game.CurrentHandNumber() - 1].CurrentRoundNumber();

            // Assert
            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
 private void ShowAllCards()                                          // only called if a player is all in, and the street has to be drawn
 {
     _game.Hands[_game.CurrentHandNumber() - 1].DrawCards(5);         // Draws all cards for the street without going through all the List<Round> in hands.
     ShowOpponentsHand();
     ShowCardImage(pictureTableCard1, _game.CurrentHand().Street[0]); // Shows image of the the first table card (flop)
     ShowCardImage(pictureTableCard2, _game.CurrentHand().Street[1]); // Shows image of the second table card (flop)
     ShowCardImage(pictureTableCard3, _game.CurrentHand().Street[2]); // Shows image of the third table card (flop)
     ShowCardImage(pictureTableCard4, _game.CurrentHand().Street[3]); // Shows turn card
     ShowCardImage(pictureTableCard5, _game.CurrentHand().Street[4]); // Shows river card
 }