
Hello. I’m trying to program a python forest game where you control the outcome by choosing the direction at which your headed in a forest using either LEFT or RIGHT. I have made it so that if you choose to go LEFT, you automatically make it out of the forest and choosing RIGHT more than a set number of times (4) will lead you to the end of the forest. Any other inputs other than LEFT or RIGHT will execute an else statement that prints out ‘go LEFT or RIGHT’ in it’s respective manner. But it seems that when trying to choose the right way out will leave you in a continuous inputting loop. Additionally, after choosing right a number of times, for some unknown reason it prints out my else statement ‘go LEFT or RIGHT’. What should I correct? As always it would be advisable to run the code yourself to experience it hands on.