public Explorer( IMaze maze, IMovementAnalyser movementAnalyser, IMoveHandler moveHandler) { this.maze = maze.CheckIfNull(nameof(maze)); this.movementAnalyser = movementAnalyser.CheckIfNull(nameof(movementAnalyser)); this.moveHandler = moveHandler.CheckIfNull(nameof(moveHandler)); this.Facing = Facing.East; this.recordedMoves = new List <string>(); }
public MovementAnalyser(IExplorerPosition explorerPosition, IMaze maze) { this.explorerPosition = explorerPosition.CheckIfNull(nameof(explorerPosition)); this.maze = maze.CheckIfNull(nameof(maze)); }