Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
 public MovementAnalyser(IExplorerPosition explorerPosition, IMaze maze)
 {
     this.explorerPosition = explorerPosition.CheckIfNull(nameof(explorerPosition));
     this.maze             = maze.CheckIfNull(nameof(maze));
 }