-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
"Too much recursion" exception is thrown during execution of the following code
def go():
if not isCompleted():
moveForward()
if objectPosition("wall", "atTheLeft"):
right(1)
else:
left(1)
go()
def moveForward():
if not objectPosition("wall", "inFrontOf"):
forward(1)
if objectPosition("wall", "atTheRight"):
if objectPosition("wall", "atTheLeft"):
moveForward()
else:
if objectPosition("wall", "inFrontOf"):
moveForward()
else:
if objectPosition("wall", "behind"):
moveForward()
else:
moveForward()
go()
in problem A, "Спирали".
In Chrome this problem doesn't have a place, only Firefox.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels