Open Roberta
Calliope Simon Says
Background
We try to showcase the capabilities of the Lab and the robots with interesting programs.
This is a NEPO task, make sure to read the info.
Task
Create the Game Simon Says for Calliope.
First, generate a random sequence using four characters (for instance, if the characters are 0, 1, 2 and 3, the sequence could be 10320213).
Then, have the Calliope display the sequence using the following lights and tones:
- Character 1 = turn LED on blue, play E
- Character 2 = turn LED on yellow, play C#
- Character 3 = turn LED on red, play A
- Character 4 = turn LED on green, play E (an octave lower than blue E)
Assign each color to a certain pin, and after the pattern has been displayed, have the user attempt to input it by pressing the pins. If the user inputs it correctly, play a “victory” tone, but if the user makes a mistake or takes too long, play a “defeat” tone.
Deliverables
Complete the task by providing the program with explanations.
Task tags
Students who completed this task
Elseif, nishanth1232, Blippy, RohanC