로그인 바로가기 하위 메뉴 바로가기 본문 바로가기
난이도
입문

처음 배우는 프로그래밍 (w.파이썬)

임시 이미지 KAIST 김문주 교수
http://www.boostcourse.org/cs114/forum/119550
좋아요 3029 수강생 14892

설명좀 해주세요.ㅠ


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!")