Get in contact

posts/page

Simon Game – VEX-IQ version – Damien Kee

Aug 12, 2015

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.

Hardware

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.

Software

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

Setup

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!

Get in Contact

  • Brenda Gahan - Head of Learning image

    Brenda Gahan - Head of Learning

    Sunshine Coast Grammar School
    star star star star star

    His wealth of knowledge and expertise allows him to tailor each workshop to the specific skill level and interests of the students (and teachers) and ensures that everyone is engaged and challenged.

  • Digital Technologies Teacher image

    Digital Technologies Teacher

    Victoria Point State High School
    star star star star star

    Students engaged in hands-on learning experiences that developed their problem-solving skills. It was a valuable and highly relevant real world learning opportunity.

  • Tammy Grady image

    Tammy Grady

    Senior Project Officer, QMEA
    star star star star star

    Through the Queensland Minerals and Energy Academy (QMEA), Damien has worked with hundreds of students and Teachers from across the State, all with varying levels of robotic and programming experience. Feedback from Damien’s workshops are always full of praise and appreciation, not only for his professional knowledge, but his adaptable teaching style and ease of delivery.

  • STEM Teacher - Years 7-10 image

    STEM Teacher - Years 7-10

    Tannum Sands State High School
    star star star star star

    Damien's professionalism and communications skills are superb. The very best educational expert visitor we have had come to the college.

  • Primary School Teacher - Year 5 image

    Primary School Teacher - Year 5

    Central Queensland Primary School
    star star star star star

    Damien's delivery style captivated students across every year level, from junior to senior. His depth of knowledge and genuine ability to tailor content to our students' abilities made a real difference, keeping everyone engaged and getting the most out of the experience regardless of their starting point.

  • Head of Curriculum image

    Head of Curriculum

    South East QLD Primary School
    star star star star star

    What stood out most was how thoroughly Damien customised the workshop to our school's specific needs. Rather than a one-size-fits-all session, he took the time to understand what we were after and delivered exactly that.