Skip to content

Repository files navigation

Python Learning Games 🎮

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.

Setup (for parents)

1. Install uv

uv is a fast Python package manager. Install it by running this in Terminal:

curl -LsSf https://astral.sh/uv/install.sh | sh

After installing, close and reopen your terminal so the uv command works.

For more details see: https://docs.astral.sh/uv/getting-started/installation/

2. Install the project

Open Terminal, go to the project folder, and run:

cd python_learning_game
uv sync

This installs Python and everything the games need. You only need to do this once.

3. Pick a game and play

Each game is in its own folder. To run a game:

uv run pgzrun catch_the_fruit/game.py

4. Start the tasks

  1. Open the game's tasks.html in a web browser (double-click the file)
  2. Open the game's game.py in VS Code
  3. Follow the tasks one by one — change the code, save, and run the game again to see what happens!

Games

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages