예제 #1
0
 /// <summary>
 /// Game constructor, takes in game parameters for main file and changes the game parameters accordingly
 /// </summary>
 /// <param name="strategyName"></param>
 /// <param name="handsToBePlayed"></param>
 /// <param name="cardCountWhenToShuffle"></param>
 /// <param name="minBet"></param>
 /// <param name="maxBet"></param>
 /// <param name="startChips"></param>
 /// <param name="deckSize"></param>
 public Simulator(string strategyName = null, int handsToBePlayed = 50000, int cardCountWhenToShuffle = 13, int minBet = 2, int maxBet = 50, int startChips = 500, int deckSize = 52)
 {
     _options = new SimulatorGameOptions(handsToBePlayed, cardCountWhenToShuffle, minBet, maxBet, strategyName, startChips, deckSize)
     {
         StrategyName = strategyName ?? "BasicStrategy"
     };
     blackjackData = new BlackjackData();
 }
예제 #2
0
 public Simulator(SimulatorGameOptions options)
 {
     this._options = options;
     blackjackData = new BlackjackData();
 }