This is a small python module that allows you solve some of the challenges from code.org in python. It is meant as a stepping stone from block programming to written code.
Using the importer
modules, the lessons and their levels can be imported from the code.org
codebase and python files are generated accordingly, for students to start coding the solution.
This is an example of what it looks like side-by-side with the "If/Else with Bee" lesson. On the left is code.org, and on the right is the same level, solved in python. And bottom right is the Turtle graphics window that shows the level.
Only lessons that code.org have released under Creative Commons license are imported and re-shared in this repo. Although with alternative artwork, as code.org holds exclusive rights to their own artwork.
- Clone this repo
- Create a python environment, either with your IDE or with the command
python -m venv .venv
- Install the maze module with pip
pip install -e maze
- Open a challenge file and try it out, e.g. from the
coursed-2023/14 - Conditionals - If-Else with Bee
Code.org has exclusive rights to their artwork and graphics, so I had to find alternative artwork from elsewhere.
The graphics and artwork is found on https://opengameart.org/ Specific mentions should go to the following for the bits I used.
- Honeycomb from Admurin's Insect Items
- Grass background from LPC Tile Atlas
- Flowers from Plants and Flowers - Pixel Art
- Ground tiles from Whispers of Avalon: Grassland Tileset
- Evil Flower obstacle from: Bevouliin Free sprite sheets - Plant Monster
- Sunflower from Plants and Flowers - Pixel Art
- Crops from LPC Crops
- Background from LPC Farming tilesets, magic animations and UI elements
- Grass background, same as Bee
- "Pig" monster from Fat Green Monster Sprites
- Walls from Platformer Tiles and Shape Characters
- TNT from Wooden Boxes Crates
- Walls, Floor and Gem from Dungeon Crawl 32x32 tiles