Skip to content

"Too much recursion" exception is thrown. #25

@elvslv

Description

@elvslv

"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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions