U E D R , A S I H C RSS

데블스캠프2011/셋째날/RUR-PLE/권순의

Difference between r1.1 and the current

@@ -1,4 +1,3 @@
Describe 데블스캠프2011/셋째날/RUR-PLE/권순의 here
== 노가다 // 한바퀴 돌고 beeper 줍고 얼마 가서 놓기 ==
{{{
move()
@@ -51,7 +50,6 @@
}}}

== 신문배달 노가다 ==
{{{
move()
turn_left()
@@ -122,12 +120,63 @@
turn_left()
move()
turn_off()
}}}

* 이런 노가다 시키지 말라고!!!

== 춤추기 ==
== 춤추기 // 미완성 ==
{{{
def turn_right() :
repeat(turn_left,3)
 
for number in range (2):
if(front_is_clear()):
move()
turn_right()
else:turn_left()
turn_off()
}}}

== 수확하긔 ==
{{{
def turn_right():
repeat(turn_left,3)
 
while 1 :
while(front_is_clear()):
if (on_beeper()):
pick_beeper()
move()
else:
move()
if(on_beeper()):
pick_beeper()
turn_left()
move()
turn_left()
else:
turn_left()
if(front_is_clear()):
move()
turn_left()
else:
turn_off()
while(front_is_clear()):
if (on_beeper()):
pick_beeper()
move()
else:
move()
if(on_beeper()):
pick_beeper()
turn_right()
move()
turn_right()
else:
turn_right()
if(front_is_clear()):
move()
turn_right()
else:
turn_off()
}}}


노가다 // 한바퀴 돌고 beeper 줍고 얼마 가서 놓기

move()
move()
move()
move()
move()
move()
move()
move()
move()
turn_left()
move()
move()
move()
move()
move()
move()
move()
move()
move()
turn_left()
move()
move()
move()
move()
move()
move()
move()
move()
move()
turn_left()
move()
move()
move()
move()
move()
move()
move()
move()
move()
turn_left()
move()
pick_beeper()
move()
move()
put_beeper()
move()
turn_off()

신문배달 노가다

move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
put_beeper()
turn_left()
turn_left()
move()
move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
turn_off()

  • 이런 노가다 시키지 말라고!!!

춤추기 // 미완성

def turn_right() :
    repeat(turn_left,3)

for number in range (2):
    if(front_is_clear()):
        move()
        turn_right()
    else:turn_left()
turn_off()

수확하긔

def turn_right():
    repeat(turn_left,3)

while 1 :
    while(front_is_clear()):
        if (on_beeper()):
            pick_beeper()
            move()
        else:
            move()
    if(on_beeper()):
        pick_beeper()
        turn_left()
        move()
        turn_left()
    else:
        turn_left()
        if(front_is_clear()):
            move()
            turn_left()
        else:
            turn_off()
    while(front_is_clear()):
        if (on_beeper()):
            pick_beeper()
            move()
        else:
            move()
    if(on_beeper()):
        pick_beeper()
        turn_right()
        move()
        turn_right()
    else:
        turn_right()
        if(front_is_clear()):
            move()
            turn_right()
        else:
            turn_off()
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:13
Processing time 0.0338 sec