Attempting to become a little more familiar with python and the trellis board, I wrote an "memory" game (a little like the old Simon game). The game starts by prompting for 1 to 4 players. After that, each player is presented with an increasingly difficult random series of buttons to push.
The first player to correctly replicate the longest pattern (currently set to 7) wins.
Shake the trellis to restart the game.
The sounds could be a bit more imaginative, but maybe later.
The attached .zip contains the code.py file, a read_me.txt file describing the libraries that are required, and the required .wav files.
Any feedback on better use of the python language is appreciated.
ADABOX010: Memory game (Simon like)
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jcalvin
- Posts: 52
- Joined: Mon Jan 04, 2016 3:37 pm
ADABOX010: Memory game (Simon like)
- Attachments
-
- memory.zip
- Minor update to the code
- (118.42 KiB) Downloaded 25 times
Last edited by jcalvin on Fri Dec 14, 2018 11:30 am, edited 5 times in total.
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: ADABOX010: Memory game
wow awesome, if you can make a video of sorts we'd love to post it on the blog :)
- jcalvin
- Posts: 52
- Joined: Mon Jan 04, 2016 3:37 pm
Re: ADABOX010: Memory game
Made a quick video and put it on YouTube:
https://www.youtube.com/watch?v=RkfXCFmJpeg
color isn't great...
https://www.youtube.com/watch?v=RkfXCFmJpeg
color isn't great...
Please be positive and constructive with your questions and comments.