Esempio n. 1
0
        public void CalculateShouldReturnPlausibleHandStrength3()
        {
            var handStrength = OddsCalculator.CalculateHandStrength(new List <Card>(), averagePlayerHand);

            //Assert.AreEqual(1, handStrength);
            Assert.IsTrue(handStrength <.6 && handStrength> .4);
        }
Esempio n. 2
0
        public virtual void StartRound(StartRoundContext context)
        {
            this.HandStrength = OddsCalculator.CalculateHandStrength(context.CommunityCards.ToList(), new List <Card> {
                this.FirstCard, this.SecondCard
            });

            this.CommunityCards = context.CommunityCards;
        }
Esempio n. 3
0
        public override void StartRound(StartRoundContext context)
        {
            this.HandStrength = OddsCalculator.CalculateHandStrength(context.CommunityCards.ToList(), new List <Card> {
                this.FirstCard, this.SecondCard
            });

            base.StartRound(context);
        }
Esempio n. 4
0
        public void CalculateShouldReturnPlausibleHandStrength1()
        {
            var handStrength = OddsCalculator.CalculateHandStrength(straightFlushCommunityCards, straightFlushPlayerCards);

            Assert.AreEqual(1, handStrength);
        }