what is wrong with this code? i am trying to the robot to solve a maze and it works:
- each time it turns 90 degrees right, hits a wall, then turns 180 degrees
and doesn't work when:
-it turns 90 degrees right, does NOT hit a wall, continues straight until it hits a new wall, and then turn 180 degrees (when it should be turning 90)
pls help!!! i have attached the image of the code:
