Simon Challenge

simon gameSimon is a game where the player has to replicate a pattern of notes played by the computer

We will emulate this game using the robot's accelerometer to identify a position to correspond to each note.

 Note  Frequency (Hz) Color Position
Middle C 262 blue left wing down
D 294 red right wing down
E 330 green beak up
F 349 yellow beak down

The robot plays a sequence of 6 notes from the tones above and the player has to try to repeat the same pattern.
(there will never be the same note twice in a row for this game)

For example, the robot plays the tones: CEDCFD and while showing the colors blue,green,red,blue,yellow,red

Then the player has to repeat the sequence by moving the robot left, up, right, left, down, right

If the player makes a wrong move the robot plays a loud, low note and says you lose.
If the player successfully completes the sequence, the robot plays a victory song and says you win.

There are many decisions to make about how this program will know whether the player is doing the right thing or not.