~cpp move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() turn_left() move() pick_beeper() turn_off()
~cpp def turn_right(): repeat(turn_left, 3) move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_right() move() pick_beeper() turn_right() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_right() move() pick_beeper() turn_right() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_left() move() pick_beeper() turn_left() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_right() move() pick_beeper() turn_right() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() move() pick_beeper() turn_off()
~cpp # Function Definitions def right(): repeat(turn_left,3) left = turn_left get = pick_beeper put = put_beeper #main source code move() get() move() get() move() get() move() get() move() get() move() get() left() move() left() get() move() get() move() get() move() get() move() get() move() get() right() move() get() right() move() get() move() get() move() get() move() get() move() get() left() move() get() left() move() get() move() get() move() get() move() get() move() get() right() move() get() right() move() get() move() get() move() get() move() get() move() get() left() move() get() left() move() get() move() get() move() get() move() get() move() get() turn_off()
~cpp def turn_right(): repeat(turn_left,3) def go_pick(): move() pick_beeper() repeat(go_pick,6) turn_left() move() pick_beeper() turn_left() repeat(go_pick,5) turn_right() move() pick_beeper() turn_right() repeat(go_pick,5) turn_left() move() pick_beeper() turn_left() repeat(go_pick,5) turn_right() move() pick_beeper() turn_right() repeat(go_pick,5) turn_left() move() pick_beeper() turn_left() repeat(go_pick,5) turn_off()
~cpp def pickup(): move() pick_beeper() def turn_right(): repeat(turn_left, 3) repeat(pickup, 6) turn_left() move() pick_beeper() turn_left() repeat(pickup, 5) turn_right() move() pick_beeper() turn_right() repeat(pickup, 5) turn_left() move() pick_beeper() turn_left() repeat(pickup, 5) turn_right() move() pick_beeper() turn_right() repeat(pickup, 5) turn_left() move() pick_beeper() turn_left() repeat(pickup, 5) turn_right() turn_off()
~cpp def turn_right(): turn_left() turn_left() turn_left() #오른쪽 함수 def move_p(): move() pick_beeper() #앞으로 한칸가서 삐삐줍기 def move_p5(): move_p() move_p() move_p() move_p() move_p() #앞으로 한칸가서 삐삐줍기 연속 5번 #pick_move5 move_p5() move_p() turn_left() move_p() turn_left() move_p5() turn_right() move_p() turn_right() move_p5() turn_left() move_p() turn_left() move_p5() turn_right() move_p() turn_right() move_p5() turn_left() move_p() turn_left() move_p5() pick_beeper() turn_off()
~cpp def move_and_pick_beeper(): move() pick_beeper() repeat(move_and_pick_beeper, 6) turn_left() repeat(move_and_pick_beeper, 5) turn_left() repeat(move_and_pick_beeper, 5) turn_left() repeat(move_and_pick_beeper, 4) turn_left() repeat(move_and_pick_beeper, 4) turn_left() repeat(move_and_pick_beeper, 3) turn_left() repeat(move_and_pick_beeper, 3) turn_left() repeat(move_and_pick_beeper, 2) turn_left() repeat(move_and_pick_beeper, 2) turn_left() repeat(move_and_pick_beeper, 1) turn_left() repeat(move_and_pick_beeper, 1) turn_off