public PlayerVsPlayerGameCommandHandler(INewGameFieldCreator newGameFieldCreator, IFieldStateConverter fieldStateConverter, IStepMaker stepMaker, IGameProcessStatisticProvider gameProcessStatisticProvider) { this.newGameFieldCreator = newGameFieldCreator; this.fieldStateConverter = fieldStateConverter; this.stepMaker = stepMaker; this.gameProcessStatisticProvider = gameProcessStatisticProvider; }
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; }
private static StepCommand CreateCommand(IStepMaker stepMaker, EDirection direction, int distance) { return(new StepCommand(stepMaker, new StepArgument { Direction = direction, Distance = distance })); }
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; }
public StepCommand(IStepMaker stepMaker, StepArgument argument) { StepMaker = stepMaker; Argument = argument; }