U E D R , A S I H C RSS

데블스캠프2005/RUR-PLE/정수민

=0=

~cpp 
def turn_right():
    turn_left()
    turn_left()
    turn_left()

def turn_back():
    turn_left()
    turn_left()

def muggi():
    if next_to_a_beeper():
        pick_beeper()
        muggi()
        if not front_is_clear():
            turn_left()
            move()
            turn_left()
            while not next_to_a_beeper():
                move()
            while front_is_clear():
                move()
            turn_back()
            while not next_to_a_beeper():
                move()
            turn_right()
            move()
            turn_left()
            put_beeper()
        else:
            move()
            put_beeper()
    else:
        if front_is_clear():
            move()
            muggi()

while front_is_clear():
    if next_to_a_beeper():
        while front_is_clear():
            move()
        turn_left()
        move()
        turn_left()
        muggi()
        turn_back()
    else:
        move()
turn_off()
 

-

~cpp 
def turn_right():
    turn_left()
    turn_left()
    turn_left()

def turn_back():
    turn_left()
    turn_left()

def muggi():
    if next_to_a_beeper():
        pick_beeper()
        banbok()
        if not front_is_clear():
            turn_left()
            move()
            turn_left()
            while not next_to_a_beeper():
                move()
            while next_to_a_beeper():
                move()
            turn_back()
            move()
            turn_right()
            while next_to_a_beeper():
                move()
            turn_left()
        put_beeper()
        move()
    else:
        if front_is_clear():
            move()
            muggi()
        ()

def banbok():
    if front_is_clear():
        move()
        muggi()

def oligi():
    while next_to_a_beeper():
        move()
    turn_left()
    move()
    turn_left()
    banbok()
    turn_back()

while front_is_clear():
    move()
    if next_to_a_beeper():
        oligi()

turn_off()

 

1 파토 =0=;;



-_-)/

~

-_-v


..!!
, (확히 ..) .
.. . . >ㅁ<;; 그런데 버그가 있다오. sort1에서 작동하지 않소!! 벽에 부딛힌다오.
. 히 해 .
표하.
: .muggi함 () ? .
-태-
;; sort1 sort.wld ?
() =0=;; ;;;
행해 if =0=;;

화 -_-!!!

... .. .. ; @0@~
.. ..ㅎㅎ ( .. ..;;)
....ㅎㅎ
..ㅎㅎ 택하 ..ㅎㅎㅎ
히 sort1 ..ㅎㅎ
sort1 ..;;ㅎㅎ sort할 ..ㅎㅎ
..ㅎㅎ ~~ㅎㅎ
Upload:sort1.wld
//: . C 편하..

-_-)/
C ;ㅡ;
=0= -_-;;


Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:00
Processing time 0.0137 sec