# Simon Game Clone with Circuit Playground Express and CircuitPython

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/078/435/medium800thumb/gaming_demo.jpg?1563701061)

In this guide, you will learn how to write a cute and fun little game for the Circuit Playground Express board, using the CircuitPython language. The game is a clone of Simon, a once very popular game of memory in which you have to remember a sequence of colors and sounds that gets progressively longer. This game was an instant hit when it was released in 1978 and became a pop culture symbol of the 1970s and 1980s.

In case you have never heard of Simon before, below you can see the original game console in all its splendor:

![](https://cdn-learn.adafruit.com/assets/assets/000/078/397/medium800/gaming_Simon_Electronic_Game.jpg?1563558051 Image: by Shritwod, Wikipedia, CC0 License.)

How do you play this game? Simon generates a random sequence of light and sound signals that  you have to repeat by pressing the buttons in the same order. The first sequence has just one signal so it is very easy, but the game gets progressively harder because each time you complete the sequence, one more signal is added at the end. Take a look at this video in which I play the game as implemented on this guide:

https://youtu.be/D4Fh4ndKRwE

My version of this game for the Circuit Playground Express uses several of the features of this board:

- The ten NeoPixel RGB LEDs are split in groups to represent the four colored areas
- The speaker plays tones that approximate those of the original game console
- The capacitive touch inputs are used for the player to enter the sequence

To write this game, I used a software technique called *bottom-up development*. The basic idea is to take a complex project and break it up into smaller and simpler tasks. You begin by implementing the smaller tasks and then work your way up to the bigger ones, which are now less complex because they can rely on the lower level tasks that are already implemented. This way of tackling a software task is good for many types of projects, but is particularly well suited for games. I hope once you learn it you will be able to apply to your own projects!

## Parts

This is an easy, no solder project. All you need is an Adafruit Circuit Playground Express board and a known good USB A to microB cable containing both power and data wires. Do not use the stubby USB cables that come with cell phone charging batteries, most do not have the data wires!

### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/guides)
![A Black woman's manicured hand holds a round microcontroller with lit up LEDs.](https://cdn-shop.adafruit.com/640x480/3333-05.jpg)

### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

Out of Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
![USB cable - USB A to Micro-B - 3 foot long](https://cdn-shop.adafruit.com/640x480/592-01.jpg)

- [Next Page](https://learn.adafruit.com/simon-game-clone-with-circuitplayground-express-and-circuitpython/using-the-mu-editor.md)

## Featured Products

### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/guides)
### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

Out of Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)

## Related Guides

- [Adafruit Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express.md)
- [Sipping Power With NeoPixels](https://learn.adafruit.com/sipping-power-with-neopixels.md)
- [Circuit Playground Gizmo Ornaments](https://learn.adafruit.com/display-ornaments-with-circuit-playground.md)
- [Pushrod Garage](https://learn.adafruit.com/pushrod-garage.md)
- [Interactive Map with Circuit Playground Express](https://learn.adafruit.com/interactive-map-with-cpx.md)
- [Dance-Reactive Tutu Sparkle Skirt](https://learn.adafruit.com/dance-reactive-tutu-sparkle-skirt.md)
- [Circuit Playground or Hallowing Jack-o'-Lantern](https://learn.adafruit.com/circuit-playground-jack-o-lantern.md)
- [Easter Egg Light Stand](https://learn.adafruit.com/easter-egg-light-stand.md)
- [Make It Hot or Cold](https://learn.adafruit.com/make-it-hot-or-cold.md)
- [Glowing Smokey Skull ](https://learn.adafruit.com/glowing-smokey-skull.md)
- [LEGO Head Lamp with Audio](https://learn.adafruit.com/lego-head-lamp-with-audio.md)
- [Glowing Neopixel Resin River Table](https://learn.adafruit.com/glowing-neopixel-resin-river-table.md)
- [Circuit Playground Analog Input](https://learn.adafruit.com/circuit-playground-analog-input.md)
- [Circuit Playground Express: Piano in the Key of Lime](https://learn.adafruit.com/circuit-playground-express-piano-in-the-key-of-lime.md)
- [Make It Bubble](https://learn.adafruit.com/make-it-bubble.md)
- [Qu'est-ce que MakeCode?](https://learn.adafruit.com/makecode-fr.md)
