설명좀 해주세요.ㅠ
hubo = Robot (beepers=10)
while not hubo.on_beeper():
if hubo.left_is_clear():
hubo.drop_beeper()
hubo.move()
elif not hubo.front_is_clear():
turn_right()
else:
hubo.move()
hubo.turn_left()
print("Hi!")
설명좀 해주세요.ㅠ
hubo = Robot (beepers=10)
while not hubo.on_beeper():
if hubo.left_is_clear():
hubo.drop_beeper()
hubo.move()
elif not hubo.front_is_clear():
turn_right()
else:
hubo.move()
hubo.turn_left()
print("Hi!")
comment