Simple Python games for kids to learn programming. Each game has its own folder with a game.py to play and a tasks.html with coding tasks.
uv is a fast Python package manager. Install it by running this in Terminal:
curl -LsSf https://astral.sh/uv/install.sh | shAfter installing, close and reopen your terminal so the uv command works.
For more details see: https://docs.astral.sh/uv/getting-started/installation/
Open Terminal, go to the project folder, and run:
cd python_learning_game
uv syncThis installs Python and everything the games need. You only need to do this once.
Each game is in its own folder. To run a game:
uv run pgzrun catch_the_fruit/game.py- Open the game's
tasks.htmlin a web browser (double-click the file) - Open the game's
game.pyin VS Code - Follow the tasks one by one — change the code, save, and run the game again to see what happens!
| Folder | Game | What you do |
|---|---|---|
catch_the_fruit/ |
Catch the Falling Fruit | Move a basket to catch falling fruit |
paint_canvas/ |
Paint Canvas | Click to draw colorful dots on a canvas |
paint_canvas_2/ |
Paint Canvas (Beginner) | Same game, but tasks teach concepts from scratch |
tank_battle/ |
Tank Battle | Shoot the enemy tank, dodge enemy bullets |