Skip to main content

As a final assignment for Making Media Making Devices we decided to create a simple math game using Python. We worked with a group of three, including Alizarin Zroob, Tim Lobiak and myself.

The idea of the game is pretty simple – the program generates simple math equations and the user is supposed to input the answer and submit it by hitting the button on breadboard. There is a countdown timer of 60 seconds. On every right answer the game score is increased by 1 point and vice-a-versa – on every wrong answer it is decreased by 1. When the time is up, cheering sound plays and camera takes a photo then saves it on the disk. The Button is connected on the GPIO 14 pin.

Libraries used: picamera, guizero, gpiozero, pygame.

Bellow you can find the source code and the demo video.