public void Initialise() { _currentGame = new Game(null); _currentGame.BattleArena = new BattleArenaFactory().Create(5, 5); _robot = new RobotFactory().Create(5, 5, StringConstants.East); _moveInstructionFactory = new MoveInstructionFactory(new LinearMoveFactory()); }
public MoveRobotCommandParser(IGameConfiguration currentGameConfiguration, IMoveInstructionFactory moveInstructionFactory) : base(currentGameConfiguration, regexPattern) { _moveInstructionFactory = moveInstructionFactory; }