Wouldn't it be easier if Simon was only one color at a time? Well, Knockoff Simon is perfect for you. The goal of this project is to create a simple fun game, that also shows off the IR sensors on the Circuit Playground Express. The game consists of two pieces, one is for inputs and one is for outputs. The output piece will display a color and then it is up to the player to select the color displayed by touching the metal plates on the correct section of the input section.
The two CPXs talk to each other using their IR sensors. The output piece is fairly simple in design. It is just the CPX attached to the cutout hole to display a color. The output CPX picks a random number 1 through 4. It then calls a function to display a color. The random number will correlate to a color in the function and that color is then displayed. The input CPX has thelogic that when certain pins are touched through the metal pads, it sends a number through IR to the output CPX. If the number from the IR is equal to the random number, then the player is successful and a victory sound is played, and then the process repeats.
Comments
Please log in or sign up to comment.