啊哈星球第6章第11关(总第71关)

2019年9月13日 | 分类: 【攻略】
def back():
    turn("left")
    turn("left")
def navigateAroundWall():
    if hasBlocked('right'):
        move()
    else:
        turn("right")
        move()
while (True):
    if (isLightOn()):
        toggle()
        break
    elif (hasBlocked('right') and hasBlocked('forward') and hasBlocked('left')):
        back()
    else:
        navigateAroundWall()