Wall follower in 3D maze

70 Views Asked by At

How should I apply, let's say, left-hand rule when I hit a wall and both up and right is free to go? If I always choose up, I might be trapped in an up and down loop while right is the exit. Same happens when I always choose right.