The "Lego Lions" Contest Robot & Trailer

##########################################

 

Our follow the line program

to follow setpower 5

loop [

right

waituntil [on-line?]

waituntil [not on-line?}

off beep

left

waitunitl [on-line?]

waituntil [not on-line?]

off beep

]

end

to left

c, off

a, on

on ac,

end

 

to right

a, off

c, on

on ac,

end

 

to on-line?

output sensor1 > 740

end