© Sloan Kelly  2019
Sloan KellyPython, PyGame, and Raspberry Pi Game Developmenthttps://doi.org/10.1007/978-1-4842-4533-0_22

22. Game Project: Memory

Sloan Kelly1 
(1)
Niagara Falls, ON, Canada
 
The game ‘Memory’ is the first GPIO project. The board is set up with two rows: one with four LEDs and the other with four buttons as shown in the finished board in Figure 22-1.
../images/435550_2_En_22_Chapter/435550_2_En_22_Fig1_HTML.jpg
Figure 22-1

The suggested layout of the breadboard with two rows: one with four LEDs and the other with four buttons

When the sequence plays on the LEDs, the player repeats the sequence by pressing the corresponding buttons on the row underneath the LEDs. The game starts with one LED being ...

Get Python, PyGame, and Raspberry Pi Game Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.