Memory Game

About Our Game

The purpose of this game is to test the user’s memory with an interactive two-player game . We constructed our game system using four LEDs, an HC-05 Bluetooth Module, and an LED Dot Matrix. We used the STM32 microcontroller to establish communication with our peripherals using two serial communication protocols. We configured the Bluetooth Module using UART serial communication and the LED Dot Matrix with SPI communication. Using these two peripherals we developed a fun, easy to follow game.

Throughout the game, there are several patterns and messages displayed on the LED Dot Matrix as a means to guide the players and provide a more interactive gaming experience. The Bluetooth module gathers the inputs, reading in char inputs, i.e. '1', '2', '3', '4' , while also displaying helpful messages on the Termite terminal. These displays are embedded as responses to the overall game flow.

The basic game functionality is as follows. Before the game play begins, the players are prompted to choose a difficulty. After making the decision, Player 1 creates an initial three colored pattern, which is then displayed on the LEDs for the second player. Player 2 then has to observe and input the correct pattern. If the pattern is inputted correctly Player 2 is prompted to add to the colored LED pattern, which is then display on the LEDs for Player 1 to mimic. The colored pattern will continue to grow until either player (1 or 2) guesses the pattern incorrectly. The first person who inputs the wrong pattern loses, prompting a game over display sequence. The players are then given the option to play again!


LCD Display

P1 - Player 1

P2 - Player 2

+ - add color to pattern

'arrow facing down' - shows that the pattern is being displayed

'123' - choose difficulty

1 - Easy

2 - Medium

3 - Hard

? - play again y/n

'flashing lights'- Gameover


SCREENSHOTS OF TERMITE