Gunner bot programing I just build the RCX Gunner Bot using the instructions from this web site.

I had to build something different to the one we built in the class, I added a touch sensor and light sensor, so the bot will avoid any obstacles on its way, and shoot when it sees a black dot. 

I am wondering if anyone has a program for a basic gunner bot, or at least for shooting the bullets. If somebody can help me, It would really appreciated.
I am not an engineering person but I need to pass that class.
Your code handling the behaviours like "Shoot 3 times if the touch sensor is triggered" or "Shoot if the light sensor is triggered" should use 'if' statements.



Then, instead of always being called, the "shooting" code would append only on sensor events.  After shooting, the robot would then go back to the "Driving around" part of the code.

This page is a good visual reference for all the RCX programming components