Memory Game - DLD Project

Thread Starter

engineer2005

Joined Dec 17, 2024
1
I need help in using components in my project:

The memory sequence game works by displaying a sequence of illuminated LEDs that the player must replicate using switches or buttons.

16 LEDs in a 4x4 configuration.
16 stages where n number of LEDs light up at stage n.

Step by Step Working:
1) Initialize
2) Random LED sequence generated (n = 1 for the first level)
3) Store generated sequence
4) User input
5) Compare user input and generated sequence
6) If input matches are generated, increase the current stage to the next one
7) Else, if the user fails to match the sequence, everything resets to stage 1

My rough inference:
The system generates and stores the light pattern using D flip-flops, which control the LEDs. The player's inputs are compared to the stored pattern using XOR gates. If the inputs match the stored sequence, a success signal is triggered; otherwise, an error signal indicates a mismatch.

Question:
How do I achieve all the 7 steps listed above?
 
Top