define turnright:
turnleft
turnleft
turnleft
define backup:
turnleft
turnleft
move
turnleft
turnleft
define movewall:
while front_is_clear:
move
define solve:
if next_to_a_beeper:
pickbeeper
if front_is_clear:
move
solve
backup
if left_is_clear:
turnleft
move
solve
backup
turnright
if right_is_clear:
turnright
move
solve
backup
turnleft
movewall
turnleft
turnleft
solve
turnoff
today i learned a confusing program thingmabob. it seems like it will take me a while to understand whats going on with this program like gerdo. im learning somthing! but now what do i do with it?
Monday, February 4, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment