Clearly state whether your design is fully functional, and state the failing sections if any exist.
Make sure your design and code are easily readable and understandable (clear and well commented).
You are going to create a simple video game using the LEDs and push buttons to simulate saving prisoners of war (POWs).
The games will go as follows:
– To start the game, press RESET. Three or Four random LEDs should be lit indicating the positions of the POWs. However, there is also a blinking LED at a random position representing your position.
– As you press the left button or the right button, your position, represented by the blinking cursor, moves.
– Move towards one of the POWs. Once you have reached them, press the center button. This rescues the POW and the corresponding the LED no longer stays lit after the cursor is moved.
– When all the POWs are saved (3 or 4 on the initial randomization), the game is over. You must make the RGB LEDs turn red while the game is going on and turn green when you have won. When reset is pressed, the game should reset.


0 comments