Coding Simon Says
You are going to code a game of Simon Says. The code will be broken down into six parts, as mentioned here:
- Code stack 1 – main code
- Code stack 2 – displaying images for player direction
- Code stack 3 – displaying images and sound for game sequence
- Code stack 4 – player input of answers
- Code stack 5 – game over sequence
- Code stack 6 – correct choice music sequence
All of the code is dependent on the gyro sensor built within the Intelligent Hub. Instead of using colors and external sensors, everything has been designed to use just the Intelligent Hub.
Let's begin!
Code stack 1 – main code
Please keep in mind that while you put this code stack together, some blocks may not work or make sense until you code out the rest of the code stacks. To ease the flow for you, I have decided to code by stacks.
The first part of this stack will clear and reset all the variables to...