Question: - There should be 4 LEDs and 4 buttons for sequence remember challenge - Game should has 1 0 levels ( details below ) -

-There should be 4 LEDs and 4 buttons for sequence remember challenge
-Game should has 10 levels (details below)
-There should be 1 LED to display the current level (details below)
The game works as ;
-At the start, all 4 LEDs should be blinking with 200ms delay
-Whenever a button is pressed (any button), the LEDs should be turned on for 2 secs.
-After that, all LEDs should turn off, and game starts after 1 sec.
-At 1st level, a random LED blink will occur in one of the 4 LEDs, then game waits the user input with button
-If the button press is correct (with respect to LED), the level will increase to 2(E.g., if the 1st LED blinked, and user pressed the 1st button)
-At the 2nd level, 2 random blinks will occur. After the blinks, the user input will be waited. If buttons are pressed correctly according to blinks, then process will continue to increment to level 10.(E.g. if blinks are occurred in 2nd and 1st LEDs, the user should press 2nd and 1st buttons in same order)
-In each level, one more random blink will occur.
-In each level, the brightness of the indicator LED should be increased.
-At the end of game, fail or completed, game should jump back to start and wait user start with blinking LEDs (same with starting condition)
Please give me Arduino code and circuit design

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!