day 6-4 python (while 반복문 장애물)
장애물이 바뀌면서 front_is_clear(), wall_in_front(), at_goal() 함수를 사용하고 반복문을 이용하여 완성시켜라 p.s. 시간이 많이 걸렸다 def turn_right(): turn_left() turn_left() turn_left() def met_wall(): turn_left() move() turn_right() move() turn_right() move() turn_left() while at_goal() !=True: if wall_in_front() == True: met_wall() elif front_is_clear() == True: move() else: break turn_right() 함수 생성 met_wall() 함수 생성 while at_goa..
2023.03.01