Ejemplo n.º 1
0
 public HeadsupRiverBettingStrategy(RiverBoard riverBoard, HoldingHoles heroHoles)
 {
     _riverBoard            = riverBoard;
     _riverFolder           = new RiverFolder();
     _probabilityCalculator = new VillainProbabilityCalculator(
         grid => _riverFolder.ShouldAGridFoldToBoardByRank(grid, _riverBoard),
         grid => _riverFolder.ShouldAGridFoldToBoardBySuit(grid, _riverBoard, heroHoles),
         () => DumbEnumerate(_riverBoard));
 }
Ejemplo n.º 2
0
        public MultiwayRiverCallingStrategy(RiverBoard riverBoard, HoldingHoles heroHoles)
        {
            _riverBoard  = riverBoard;
            _riverFolder = new RiverFolder();
            var fiveCardsEnumerator = new RiverFiveCardsEnumerator(riverBoard);

            _probabilityCalculator = new VillainProbabilityCalculator(
                grid => _riverFolder.ShouldAGridFoldToBoardByRank(grid, _riverBoard),
                grid => _riverFolder.ShouldAGridFoldToBoardBySuit(grid, _riverBoard, heroHoles),
                fiveCardsEnumerator.Enumerate);
        }