public void CalculateShouldReturnPlausibleHandStrength3() { var handStrength = OddsCalculator.CalculateHandStrength(new List <Card>(), averagePlayerHand); //Assert.AreEqual(1, handStrength); Assert.IsTrue(handStrength <.6 && handStrength> .4); }
public virtual void StartRound(StartRoundContext context) { this.HandStrength = OddsCalculator.CalculateHandStrength(context.CommunityCards.ToList(), new List <Card> { this.FirstCard, this.SecondCard }); this.CommunityCards = context.CommunityCards; }
public override void StartRound(StartRoundContext context) { this.HandStrength = OddsCalculator.CalculateHandStrength(context.CommunityCards.ToList(), new List <Card> { this.FirstCard, this.SecondCard }); base.StartRound(context); }
public void CalculateShouldReturnPlausibleHandStrength1() { var handStrength = OddsCalculator.CalculateHandStrength(straightFlushCommunityCards, straightFlushPlayerCards); Assert.AreEqual(1, handStrength); }