// The constructor for the game simulation Input, that sets all of the game simulation input parameters. public GameSimulationInput(PlayerStrategy player_strategy, decimal balance, decimal bet_amount, DealerStrategy dealer_strategy, int number_of_decks, int deal_percentage, int number_of_simulation_hands, EnumDoubleOn double_on, bool double_after_split, EnumSurrender surrender_option, int number_of_replit_option, bool cannot_split_aces, bool hit_split_aces, bool cannot_split_4s_5s_10s, bool shuffle_after_each_hand, EnumCardBonus card_bonus_option, bool lucky_777, EnumBlackJackPays bj_pays_option, bool suited_bj_pays_2to1) { _PLAYER_STRATEGY = player_strategy; _BALANCE = balance; _BET_AMOUNT = bet_amount; _DEALERS_STRATEGY = dealer_strategy; _NUMBER_OF_DECKS = number_of_decks; _DEAL_PERCENTAGE = deal_percentage; _NUMBER_OF_SIMULATION_HANDS = number_of_simulation_hands; _DOUBLE_ON_OPTION = double_on; _DOUBLE_AFTER_SPLIT = double_after_split; _SURRENDER_OPTION = surrender_option; _NUMBER_OF_SPLIT_OPTION = number_of_replit_option; _CANNOT_SPLIT_ACES = cannot_split_aces; _HIT_SPLIT_ACES = hit_split_aces; _CANNOT_SPLIT_4s_5s_10s = cannot_split_4s_5s_10s; _SHUFFLE_AFTER_EACH_HAND = shuffle_after_each_hand; _CARD_BONUS_OPTION = card_bonus_option; _LUCKY_777 = lucky_777; _BJ_PAYS_OPTION = bj_pays_option; _SUITED_BJ_PAYS_2to1 = suited_bj_pays_2to1; }
public void StandOnGreaterThanHard17Test() { PlayerState expectedState = PlayerState.Stand; Player player = new DealerStrategy { Chips = 500, hand = new Hand { cards = new List <Card>() { new Card(Suit.Heart, Face.Ten), new Card(Suit.Club, Face.Ten) } } }; PlayerState state = (player.React(dealersUpCard: new Card(Suit.Club, Face.Eight), ref player.CurrentState, player.hand, new List <int>())); Assert.AreEqual(expectedState, state); }
public Dealer(DealerStrategy strategy) : base(strategy) { }
public Game(Shoe shoe, List <Player> players, DealerStrategy dealerStrategy) { _dealerStrategy = dealerStrategy; _players = players; _shoe = shoe; }
private Card _dealer_UpCard; // holds the dealer's up card (revealed card) // The constructor to create a new Dealer. The dealer will take in a dealer playing strategy to be used in the game simulation. public Dealer(DealerStrategy dealer_strategy, bool debug) { this._dealer_Strategy = dealer_strategy; this._dealer_Hand = new Hand(debug); }