Take every turn from the direction the person is facing at that moment, keep running East–West and North–South totals, then read off the straight-line distance and the final direction.
Adding up the whole path instead of the straight-line distance, or confusing the facing direction with the direction from the start.
x = net East, y = net North; distance = √(x² + y²); the facing direction is simply the last direction walked.