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)); }
public FlopHeadsUpBettingStrategy(FlopBoard flopBoard, HoldingHoles heroHoles) { _flopBoard = flopBoard; _flopFolder = new FlopFolder(); var enumerator = new FlopFiveCardsEnumerator(_flopBoard, heroHoles); _probabilityCalculator = new VillainProbabilityCalculator( grid => _flopFolder.ShouldAGridFoldToBoardByRank(grid, _flopBoard), grid => _flopFolder.ShouldAGridFoldToBoardBySuit(grid, _flopBoard, heroHoles), enumerator.Enumerate); }
public TurnMultiwayCallingStrategy(TurnBoard turnBoard, HoldingHoles heroHoles) { _turnBoard = turnBoard; _turnFolder = new TurnFolder(); var fiveCardsEnumerator = new TurnFiveCardsEnumerator(turnBoard, heroHoles); _probabilityCalculator = new VillainProbabilityCalculator( grid => _turnFolder.ShouldAGridFoldToBoardByRank(grid, _turnBoard), grid => _turnFolder.ShouldAGridFoldToBoardBySuit(grid, _turnBoard, heroHoles), fiveCardsEnumerator.Enumerate); }
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); }