Ejemplo n.º 1
0
 public void A_Init()
 {
     _stub = new StubBuilder();
     _analyzationPreparer = new ReactionAnalyzationPreparer();
     _sut        = new RaiseReactionAnalyzer();
     _raiseSizes = ApplicationProperties.RaiseSizeKeys;
 }
Ejemplo n.º 2
0
        /// <summary>
        ///   Analyzes the data given by the analyzation preparer.
        /// </summary>
        /// <param name="analyzablePokerPlayer">
        ///   Player whose data is examined
        /// </param>
        /// <param name="analyzationPreparer">
        ///   Provides StartingIndex (Hero's original action) and Sequence
        /// </param>
        /// <param name="considerOpponentsRaiseSize">If true, it will determine the opponents re(raise) size and set the Considered raise size to it.
        /// So far this only is done like this for PostFlopHero acts. In all other cases set it to false and the raise size of the hero is used.</param>
        /// <param name="raiseSizeKeys">
        ///   Raise sizes to which the Opponent Raise size should be normalized to
        /// </param>
        public IRaiseReactionAnalyzer AnalyzeUsingDataFrom(
            IAnalyzablePokerPlayer analyzablePokerPlayer,
            IReactionAnalyzationPreparer analyzationPreparer,
            bool considerOpponentsRaiseSize,
            double[] raiseSizeKeys)
        {
            _considerOpponentsRaiseSize = considerOpponentsRaiseSize;
            AnalyzablePokerPlayer       = analyzablePokerPlayer;
            _analyzationPreparer        = analyzationPreparer;
            RaiseSizeKeys = raiseSizeKeys;

            try
            {
                IsValidResult = AnalyzeReaction();
            }
            catch (Exception excep)
            {
                Log.Error(ToString(), excep);

                IsValidResult = false;
            }

            return(this);
        }
Ejemplo n.º 3
0
 public RaiseReactionsAnalyzer(IReactionAnalyzationPreparer reactionAnalyzationPreparer)
 {
     _reactionAnalyzationPreparer = reactionAnalyzationPreparer;
 }
Ejemplo n.º 4
0
 public void A_Init()
 {
     _sut = new ReactionAnalyzationPreparer();
 }