Exemplo n.º 1
0
 public GameHandler(BACContext context, IAIHandler aIHandler, IOptions <AppSettings> appSettings)
 {
     this._context   = context;
     this._aiHandler = aIHandler;
     this._rng       = new RNGHandler(appSettings);
     this.NumberOfGuessesAIHasToMakeBeforeItStartsUsingAnOptimalStrategy =
         appSettings.Value.NumberOfGuessesAIHasToMakeBeforeItStartsUsingAnOptimalStrategy;
 }
Exemplo n.º 2
0
 public AIHandler(IOptions <AppSettings> appSettings)
 {
     this.NumberSize = appSettings.Value.NumberDigitSize;
     this._rng       = new RNGHandler(appSettings);
 }