Skip to content

Commit db42512

Browse files
committed
Running robot/refuel.py
1 parent f2906ef commit db42512

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

robot/refuel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def test_way():
2121
if (find_fruit() == False):
2222
if (touch() != "wall"):
2323
a=1
24-
elif (right_side() != "wall"):
25-
turn(1)
2624
elif (left_side() != "wall"):
2725
turn(-1)
28-
elif ("wall"):
26+
elif (right_side() != "wall"):
27+
turn(1)
28+
elif (touch() == "wall"):
2929
turn(2)
3030
move()
3131

0 commit comments

Comments
 (0)