
How to Build
This will be where we show you how to assemble the proper pieces and provide the code needed in order to run this game smoothly.
Game Pieces
A little more complex than before, but that just means it's more fun. Once provided with the pieces for the game, follow the instructions given per game piece, as they may be slightly different. Finally, cut them out, fold, and glue as instructed per individual piece. Assemble the game piece box so the pieces can be stored! You're almost into the fun, just a bit more to do!
Here are the pieces:
​
Pyramid and storage box (with instructions)
​
Triangular Prism Piece (with instructions)
​
The Breadboard and RedBoard
This is the body of the game. It needs to be assembled as shown in the picture below in order to have the brain of the operation, the code, to work as well. The circuit diagram provided should be enough to allow you to set up the boards properly. Once this step is complete, connect your computer to the RedBoard using the USB cable


Hover Game
When a player has to play the Hover game, they can jump straight into the game, meaning there is no button required to activate it. Then, they must place their hand above the photoresistor at a specific position. Once they have done this, press the red button so their position is locked in. They have two tries to get their hand at the correct position so the specified amount of light brightness for each level is hitting the photoresistor. The target brightness is displayed on the Serial Monitor, so make sure it is open while playing this game! It tells you if you completed the level, else it just displays the brightness that it read. If the player successfully completes all 4 levels, they win the game. Make sure the main Arduino code is running while playing this game as well.
There is a calibration that needs to be done for this challenge when the game is first set up. To do this:
​
Open the main Arduino code in Arduino.
Upload it to the arduino and load the Serial Monitor
You should receive a message that tells you how to calibrate the photoreceptor and will output some kind of number.
Take this number from the serial monitor and input it into the variable "int brightnessHigh=" right after the equals sign.

Music Challenge
Keep this file handy for when the Music Challenge comes up. Upload it and guess the song to win the challenge.
Press the blue button to activate this game.
When this challenge pops up, you will need to upload the code to the RedBoard again, as it is rather large in file size. Make sure the code is not on the same file as the main Arduino code above, or else the music code will not work!

Memory Challenge
The code for this game is included in the main Arduino code above. That will be all that's needed for this game aside from the breadboard and RedBoard itself, along with the button and the LED's that will actually light up.
​
When playing this game, the player will press the yellow button, which will then light up a sequence of flashing lights. They will then relay it back to the other players, who will check the Serial Monitor to verify if their answer is correct.

Fitness Challenge
When a person is assigned a fitness challenge, they must draw a card from the gameboard. This card contains a task that they must complete in order to win the challenge. No code involved here! Just the cards on the board!
​
​
There will also be 32 cards needed to be cut out. You can find the cards by clicking the button below. Cut them out and place them on the board facedown where it says "FITNESS".

Here are some pictures to go by...
If your finished electronics looks like this, you're good to go! It is critical you follow the instructions for assembling the electronics carefully, as 3 of the 4 challenges depend on this!
Your Gameboard!
Once the gameboard is printed out, the game pieces have been created, and the fitness challenge cards have been cut and stacked into a pile, here is what it should look like! The cards should be on top of "FITNESS" ideally but anywhere on the board is ok.


Your Code!
This is an example of what your running code will look like when you are playing the game! It is best to have both the Arduino and C++ running side-by-side, as shown here.
Gameboard and Arduino combo
Keep them close together. Like this. It'll make it easier to play! As you can see, this is the final setup of the game. The USB cable connects the RedBoard to the computer, and the electronics and computer are near the gameboard. This will make gameplay very easy to carry out!
