U E D R , A S I H C RSS

데블스캠프2005/RUR-PLE/Harvest/김태훈-zyint

~cpp 
########################
# Function Definitions #
########################
def right():
    repeat(turn_left,3)


#move get function
def moveget(no):
    for i in range(no):
        move()
        get()
left = turn_left
get = pick_beeper
put = put_beeper

def upleft():
    left()
    move()
    left()
    get()

def upright():
    right()
    move()
    right()
    if next_to_a_beeper():
        get()


def get2line(a,b):
    moveget(a)
    upleft()
    moveget(b)
    upright()

####################
# main source code #
####################

get2line(6,5)

get2line(5,5)

get2line(5,5)

turn_off()

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:58
Processing time 0.0105 sec