コード例 #1
0
        public void CalculateShouldReturnPlausibleHandStrength3()
        {
            var handStrength = OddsCalculator.CalculateHandStrength(new List <Card>(), averagePlayerHand);

            //Assert.AreEqual(1, handStrength);
            Assert.IsTrue(handStrength <.6 && handStrength> .4);
        }
コード例 #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;
        }
コード例 #3
0
ファイル: TodorPlayer.cs プロジェクト: ekov1/TelerikAcademy
        public override void StartRound(StartRoundContext context)
        {
            this.HandStrength = OddsCalculator.CalculateHandStrength(context.CommunityCards.ToList(), new List <Card> {
                this.FirstCard, this.SecondCard
            });

            base.StartRound(context);
        }
コード例 #4
0
        public void CalculateShouldReturnPlausibleHandStrength1()
        {
            var handStrength = OddsCalculator.CalculateHandStrength(straightFlushCommunityCards, straightFlushPlayerCards);

            Assert.AreEqual(1, handStrength);
        }