Artificial intelligent assistant

Can this be proven for any maze? < Is there a maze that can't be solved simply by following that strategy. Assumption 1. Solution must exist 2. Sticking your hand to the right or left don't solve that.

This depends a lot on what you consider a maze. If you start in the small room of this

<

you never make it out with either the left or right hand.

It will work both entrance and exit are on the outside of the maze, and there are no bridges or tunnels or other weirdness. To see why the method works, think about the wall your hand is on as having a long path around it. That path must be a loop, and we know that the part of the path on the outside of the maze goes from the exit to the entrance. Therefore, the part on the inside must go from the entrance to the exit, to complete the loop.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 603f98175a48fcd6183dbfe44c779b22