The Repeat After Me is a simple memory game using the Raspberry Pi, a buzzer and TM1638 module.
The Raspberry Pi will first display a random pattern of sequence. You then have to duplicate the sequence by pressing the buttons. The pattern would get bigger and faster. (You may change the parameter MAXIMUMTEST to increase the number of pattern). Your final score will be displayed when you get the pattern wrong.
If you want to replicate this using Arduino, you make check the Make magazine project on Repeat After Me using Mintduino.
The code was extended from Martin Oldfield‘s code. However, instead of using bcm2835 library, I opted for the wiringPi library by Gordon.
The kbhit( ) method is from here.