Example #1
0
        public void AnalyzeUsingDataFrom_HeroXOppBHeroR_OppReraisesFourTimes_OpponentRaiseSizeIsStandardizedToFive()
        {
            IConvertedPokerRound sequence = "[2]X,[1]B,[2]R3.0,[1]R4.0,[2]R3.0".ToConvertedPokerRoundWithIds();

            _analyzationPreparer.PrepareAnalyzationFor(sequence, HeroPosition, ActionSequences.HeroXOppBHeroR);

            _sut.AnalyzeUsingDataFrom(_stub.Out <IAnalyzablePokerPlayer>(), _analyzationPreparer, true, _raiseSizes);

            _sut.ConsideredRaiseSize.ShouldBeEqualTo(5);
        }
Example #2
0
        public IRaiseReactionsAnalyzer AnalyzeAndAdd(
            IRaiseReactionAnalyzer raiseReactionAnalyzer,
            IAnalyzablePokerPlayer analyzablePokerPlayer,
            Streets street,
            ActionSequences actionSequence,
            bool considerOpponentsRaiseSize)
        {
            _reactionAnalyzationPreparer.PrepareAnalyzationFor(
                analyzablePokerPlayer.Sequences[(int)street], analyzablePokerPlayer.Position, actionSequence);

            if (_reactionAnalyzationPreparer.WasSuccessful)
            {
                raiseReactionAnalyzer
                .AnalyzeUsingDataFrom(analyzablePokerPlayer, _reactionAnalyzationPreparer, considerOpponentsRaiseSize, RaiseSizeKeys);
                if (raiseReactionAnalyzer.IsValidResult & raiseReactionAnalyzer.IsStandardSituation)
                {
                    _raiseReactionAnalyzers.Add(raiseReactionAnalyzer);
                }
            }

            return(this);
        }