/// <summary> /// Moves the rover according to a given set of instructions. /// </summary> /// <param name="instructions">A string containing the chars 'L', 'M', and 'R'.</param> /// <returns>An <see cref="IEnumerable{string}"/> containing the formatted "X Y Z" current position.</returns> public string ExecuteInstructions(string instructions) { foreach (var instruction in Decoder.CreateMovementInstructions(instructions)) { Controller.Move(instruction); } return(GetPosition()); }