I uploaded a project, TexGame, from when I was 17 & 18 years old to github, it’s at https://github.com/bjwbell/texgame.
The code is in Python and uses PyGame for the graphics and sound.
The purpose of the game is to get as high a score as possible. To achieve this lines are eaten away. There is an eater block that goes across the screen. The rate at which it eats blocks depends on how many spaces it encounters. The more open spaces it eats the slower it moves, which is bad.