Simon's Caterpillar is a re-implementation of the game Caterpillar Logic by Fuks Michael targeting Tiny Tapeout with the Simon Says PMOD.
The game consists of 20 levels. Each level has a secret rule that is valid for certain sequences of colors. For instance, if the rule is "contains exactly two yellow tokens" then blue-yellow-green-yellow is a valid sequence and yellow-red-blue is an invalid one.
A new level starts in exploration mode. You can ask an unlimited number of questions where you learn whether a particular sequence is valid or not. Once you know the rule you can activate challenge mode. Now the roles are reversed and the game asks you 15 questions. If you can answer all of them correctly, you advance to the next level.
Set the clock to 50 kHz. Activate and reset the project. The 7-segment display should indicate level 1 and only the blue led should light up. You are in exploration mode.
A sequence of up to 7 colors can be typed into the buffer with short presses of the buttons. The leds indicate the sequence status in real time:
(The empty sequence is neither valid nor invalid.)
Further operations are available as long button presses or a combination of two buttons:
A sequence of up to 6 colors is shown as a series of led flashes. Press the green or red button to mark it as valid or invalid respectively.
Each correct answer adds a notch (turns on a new segment on the 7-segment display). After the 15th one the next level is loaded. An incorrect answer switches back to exploration mode.
Other keys and combinations:
Simon Says PMOD
# | Input | Output | Bidirectional |
---|---|---|---|
0 | red button | red led | segment A |
1 | green button | green led | segment B |
2 | blue button | yellow led | segment C |
3 | yellow button | blue led | segment D |
4 | display polarity | speaker | segment E |
5 | digit 1 | segment F | |
6 | digit 2 | segment G | |
7 |