Simon Says

MediumSimon SaysReactGame35 mins

by Pratik Rai

Read the full write-up

Build Simon. The computer lights a growing sequence of pads; the player repeats it. Get it right and the sequence gains a pad. Get it wrong and the round is over.

Requirements

  1. Start begins with a one-pad sequence and plays it back.

  2. During playback each pad in the sequence lights in turn, and the pads cannot be pressed.

  3. After playback the player repeats the sequence, pad by pad.

  4. A wrong pad ends the game and says how far the player got.

  5. Completing the sequence appends one new random pad and plays the longer sequence.

  6. The round counter shows the current sequence length.

Notes

  • Sound is out of scope — lighting the pad is the feedback.

  • The .pad-lit class already handles the lit look.

Hints

Loading editor…