public PlayerVsPlayerGameCommandHandler(INewGameFieldCreator newGameFieldCreator, IFieldStateConverter fieldStateConverter, IStepMaker stepMaker, IGameProcessStatisticProvider gameProcessStatisticProvider)
 {
     this.newGameFieldCreator          = newGameFieldCreator;
     this.fieldStateConverter          = fieldStateConverter;
     this.stepMaker                    = stepMaker;
     this.gameProcessStatisticProvider = gameProcessStatisticProvider;
 }
Beispiel #2
0
 public AllPossibleGameFieldsProvider(INewGameFieldCreator newGameFieldCreator, IFieldStateConverter fieldStateConverter, IStepMaker stepMaker, IPossibleStepsProvider possibleStepsProvider, IGameProcessStatisticProvider gameProcessStatisticProvider)
 {
     this.newGameFieldCreator          = newGameFieldCreator;
     this.fieldStateConverter          = fieldStateConverter;
     this.stepMaker                    = stepMaker;
     this.possibleStepsProvider        = possibleStepsProvider;
     this.gameProcessStatisticProvider = gameProcessStatisticProvider;
 }
Beispiel #3
0
 private static StepCommand CreateCommand(IStepMaker stepMaker, EDirection direction, int distance)
 {
     return(new StepCommand(stepMaker, new StepArgument
     {
         Direction = direction,
         Distance = distance
     }));
 }
Beispiel #4
0
 public PlayerVsMonkeyBotCommandHandler(INewGameFieldCreator newGameFieldCreator, IFieldStateConverter fieldStateConverter, IStepMaker stepMaker, IGameProcessStatisticProvider gameProcessStatisticProvider, ILogicBot monkeyBot)
 {
     this.newGameFieldCreator          = newGameFieldCreator;
     this.fieldStateConverter          = fieldStateConverter;
     this.stepMaker                    = stepMaker;
     this.gameProcessStatisticProvider = gameProcessStatisticProvider;
     this.monkeyBot                    = monkeyBot;
     this.random = new Random();
 }
 public GeneticBotDeveloper(
     INewGameFieldCreator newGameFieldCreator,
     IFieldStateConverter fieldStateConverter,
     IGeneticBot geneticBot,
     IStepMaker stepMaker,
     IGameProcessStatisticProvider gameProcessStatisticProvider,
     IMonkeyBot monkeyBot)
 {
     this.newGameFieldCreator          = newGameFieldCreator;
     this.fieldStateConverter          = fieldStateConverter;
     this.geneticBot                   = geneticBot;
     this.stepMaker                    = stepMaker;
     this.gameProcessStatisticProvider = gameProcessStatisticProvider;
     this.monkeyBot                    = monkeyBot;
     this.random     = new Random();
     this.winFactors = new Dictionary <int, int>();
 }
 public GeneticBot(IFieldStateConverter fieldStateConverter, IStepMaker stepMaker, IPossibleStepsProvider possibleStepsProvider)
 {
     this.fieldStateConverter   = fieldStateConverter;
     this.stepMaker             = stepMaker;
     this.possibleStepsProvider = possibleStepsProvider;
 }
Beispiel #7
0
 public StepCommand(IStepMaker stepMaker, StepArgument argument)
 {
     StepMaker = stepMaker;
     Argument  = argument;
 }