The game of Simon is a lot of fun for kids and adults alike. The basic premise is this:
Device does an action (display a light, plays a sound etc.) Player has to repeat the action (press a button corresponding to the light/sound etc). The device then does the original action plus a new action. Player has to repeat the sequence. Each time the player gets the sequence right, the device adds another action onto the sequence making it harder and harder to remember.
This is my VEX-IQ version of the Simon Game.
This project uses a VEX-IQ Smart Brain and 3 Touch LED's. Given the VEX-IQ can take up to 12 input/outputs, I could theoretically do one that had 12 TouchLED's (but I think that would prove just a little too difficult). No other hardware other than some plates and pins to prop it up.
The software is all programmed in RobotC and you can download my software here - simon.c (if you use it, please acknolowgement where appropriate and forgive any glaring errors!)
These are some of the important parts of the code
Fill the sequence array with random numbers between 0-2 to represent which TouchLED's are going to light up.
Flash the right sequence level
Check to see which TouchLED's were pressed
Check to see if the TouchLED that was pressed is the right one, if it is, then allow it to check another.
This is a nice little project for teaching arrays in the classroom. Let me know if you use it and how you would improve on it!