Alex's Bug

This is a web page about a project that I made in my computer class. I made a moving Lego bug. I programmed it to go forwards, backwards, left, and right. The GO procedure makes it go in all directions one after the other. Below is a picture of the bug and the procedures that I wrote:

to forward
athisway
bthisway
aon bon wait 15 aoff boff
end

to right
bthisway
bonfor 15
end

to left
athisway
aonfor 15
end

to back
athatway
bthatway
aon bon wait 15 aoff boff
end

to go
forward
left
back
right
forward
right
left
back
forward
end

Vina Danks Home Page || Student Projects