O'Reilly logo

Raspberry Pi For Dummies by Mike Cook, Sean McManus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing to Build the Copycat Game

The idea behind the game is that four different-colored LEDs come on in a random sequence. Beside each LED is a small push-button switch. You have to mimic the sequence by pushing the switches next to the appropriate LED. If you get it right, an extra light is added to the sequence and you try to mimic it again. As the sequence becomes longer, the game gets more difficult. If you want to skip ahead and look at the simple version of the game, see Figure 16-4. However, we also describe a more sophisticated way of constructing the game with illuminated push buttons. This version, shown in Figure 16-15, looks a lot less like a circuit board and more like a game.

Here are the parts you’ll need to build the simplest version of Copycat:

check.png 1 3.3" × 3.3" copper strip prototype board.

check.png 4 tack push-button switches.

check.png 1 3mm red LED – red diffuse encapsulation.

check.png 1 3mm green LED – green diffuse encapsulation.

check.png 1 3mm yellow LED – yellow diffuse encapsulation.

1 3mm blue ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required