Pong

Very simple game of Pong I made in Pygame. Ball moves diagonally in the most basic way possible, by adding or subtracting 1 of the x and y. Implemented collision with the walls and paddles, and a score system.

Implemented a very simple bot to play against the user: paddle simply moves towards the y position the ball is at. This made the bot unbeatable however so I made the ball speed up over time, the bot can keep up until a critical point where the ball is moving too fast for the rudimentary system to keep up. The user must therefore beat the bot by predicting the position of the ball when it reaches their paddle’s x coord rather than simply following its position on the y.

Pong
Pong

Corona Clock

This was my first adventure into IoT/electronics.

The idea came when I found an API which served data relating to the COVID pandemic. I researched how to connect a seven segment display to a Raspberry Pi, using the GPIO pins. I also discovered I2C which is a brilliant way to connect electronic devices with only 2 wires: one for data and one to sync the clock.

I then made a little box for my electronics using some old insulation.

The device used the API to display the number of people who had recovered from coronavirus globally.