# EduWorld
`EduWorld` is an educational `python` package designed for students to learn computational thinking, algorithms, and other basic programming concepts. Through this process they learn how to divide a problem into smaller steps and refine them; to abstract; to recognize patterns; and to design and implement algorithms;
## Robot
Conceptually it is based on Kumir Robot, with bits of Karel the Robot. (but shares no code)
* https://github.com/a-a-maly/kumir2
* https://github.com/TylerYep/stanfordkarel
* https://github.com/xsebek/karel
The Robot can walk in four cardinal directions, sense walls, temperature, radiation, and place/pickup beepers.
See the `eduworld.robot` module for the list of all available procedural commands.
Oop version of the Robot is not yet completed and somewhat clumsy to use.
### Interactive mode
```python
from eduworld.robot import setup, shutdown
setup(world="demo-world", interactive=True, x=1, y=1)
shutdown(keep_window=True)
```
To launch Robot in interactive mode (immediate command execution), run `python test_robot.py`.
In this mode Robot will not execute error shut-off even if you run it into the wall.
Command keys
* W - move up
* S - move down
* A - move left
* D - move right
* E - paint tile
* R - pickup beeper
* F - put beeper
* Q - quit
* P - Save current world into out.aww file
* KP_8 - Toggle tile top wall
* KP_6 - Toggle tile right wall
* KP_2 - Toggle tile bottom wall
* KP_4 - Toggle tile left wall
## Plotter
The Plotter is used to paint lines on endless sheet of paper. It is conceptually based on Kumir Plotter, but with few extras.
See the `eduworld.plotter` module for list of available commands.
### Interactive mode
```python
from eduworld.plotter import setup, shutdown
setup(interactive=True)
shutdown(keep_window=True)
```
To launch Plotter in interactive mode run `python test_plotter.py`.
In this mode you can control plotter's head using following keys
* Keypad 8 - move up 1 unit
* Keypad 2 - move down 1 unit
* Keypad 4 - move left 1 unit
* Keypad 6 - move right 1 unit
* Keypad 9 - move up-right 1 unit
* Keypad 3 - move down-right 1 unit
* Keypad 1 - move down-left 1 unit
* Keypad 7 - move up-left 1 unit
* Keypad 0 - Move pen to origin (0, 0)
* Keypad - - zoom out
* Keypad + - zoom in
* W - randomly pick pen width
* E - randomly pick pen color
* R - raise pen
* F - lower pen
* Z - undo last line
* C - erase drawing
When you `shutdown()` Plotter with `keep_window=True`, you can use Keypad to move around the paper sheet.
Raw data
{
"_id": null,
"home_page": null,
"name": "EduWorld",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "beginners, computational thinking, education, gamification, learning",
"author": null,
"author_email": "Stanislav Grinkov <StanislavGrinkov@users.noreply.codeberg.org>",
"download_url": "https://files.pythonhosted.org/packages/51/37/def5d2341fb281daea027bda980daaf65b0e45745c876afbf33b775cf3db/eduworld-0.0.28.tar.gz",
"platform": null,
"description": "# EduWorld\n\n`EduWorld` is an educational `python` package designed for students to learn computational thinking, algorithms, and other basic programming concepts. Through this process they learn how to divide a problem into smaller steps and refine them; to abstract; to recognize patterns; and to design and implement algorithms;\n\n## Robot\n\nConceptually it is based on Kumir Robot, with bits of Karel the Robot. (but shares no code)\n* https://github.com/a-a-maly/kumir2\n* https://github.com/TylerYep/stanfordkarel\n* https://github.com/xsebek/karel\n\nThe Robot can walk in four cardinal directions, sense walls, temperature, radiation, and place/pickup beepers.\n\nSee the `eduworld.robot` module for the list of all available procedural commands.\n\nOop version of the Robot is not yet completed and somewhat clumsy to use.\n\n### Interactive mode\n\n```python\nfrom eduworld.robot import setup, shutdown\n\n\nsetup(world=\"demo-world\", interactive=True, x=1, y=1)\nshutdown(keep_window=True)\n```\n\nTo launch Robot in interactive mode (immediate command execution), run `python test_robot.py`.\nIn this mode Robot will not execute error shut-off even if you run it into the wall.\n\nCommand keys\n\n* W - move up\n* S - move down\n* A - move left\n* D - move right\n* E - paint tile\n* R - pickup beeper\n* F - put beeper\n* Q - quit\n* P - Save current world into out.aww file\n* KP_8 - Toggle tile top wall\n* KP_6 - Toggle tile right wall\n* KP_2 - Toggle tile bottom wall\n* KP_4 - Toggle tile left wall\n\n## Plotter\n\nThe Plotter is used to paint lines on endless sheet of paper. It is conceptually based on Kumir Plotter, but with few extras.\n\nSee the `eduworld.plotter` module for list of available commands.\n\n### Interactive mode\n\n```python\nfrom eduworld.plotter import setup, shutdown\n\n\nsetup(interactive=True)\nshutdown(keep_window=True)\n```\n\nTo launch Plotter in interactive mode run `python test_plotter.py`.\nIn this mode you can control plotter's head using following keys\n\n* Keypad 8 - move up 1 unit\n* Keypad 2 - move down 1 unit\n* Keypad 4 - move left 1 unit\n* Keypad 6 - move right 1 unit\n* Keypad 9 - move up-right 1 unit\n* Keypad 3 - move down-right 1 unit\n* Keypad 1 - move down-left 1 unit\n* Keypad 7 - move up-left 1 unit\n* Keypad 0 - Move pen to origin (0, 0)\n* Keypad - - zoom out\n* Keypad + - zoom in\n* W - randomly pick pen width\n* E - randomly pick pen color\n* R - raise pen\n* F - lower pen\n* Z - undo last line\n* C - erase drawing\n\nWhen you `shutdown()` Plotter with `keep_window=True`, you can use Keypad to move around the paper sheet.\n",
"bugtrack_url": null,
"license": "GPL-3.0-or-later",
"summary": "Educational package to learn computational thinking and other basic programming concepts",
"version": "0.0.28",
"project_urls": {
"Documentation": "https://codeberg.org/helkaraxe/algoworld-python#readme",
"Issues": "https://codeberg.org/helkaraxe/algoworld-python/issues",
"Source": "https://codeberg.org/helkaraxe/algoworld-python"
},
"split_keywords": [
"beginners",
" computational thinking",
" education",
" gamification",
" learning"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "59b52d4dabba64338c285d0631d76e222a87935455619d3296e9bc605ac26db4",
"md5": "a1ba741602037d2615c54a334d389080",
"sha256": "3be6993193567a9e99a2584b0aca95334484f11bf7fad29b003c1de0e3121d12"
},
"downloads": -1,
"filename": "eduworld-0.0.28-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a1ba741602037d2615c54a334d389080",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 41931,
"upload_time": "2024-11-30T07:08:25",
"upload_time_iso_8601": "2024-11-30T07:08:25.398123Z",
"url": "https://files.pythonhosted.org/packages/59/b5/2d4dabba64338c285d0631d76e222a87935455619d3296e9bc605ac26db4/eduworld-0.0.28-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5137def5d2341fb281daea027bda980daaf65b0e45745c876afbf33b775cf3db",
"md5": "f9875a8d4824afa551fdb341ac0900eb",
"sha256": "29bcb535002888d746833f06b880cd254fd86832451dea9c24c5ae619b08e111"
},
"downloads": -1,
"filename": "eduworld-0.0.28.tar.gz",
"has_sig": false,
"md5_digest": "f9875a8d4824afa551fdb341ac0900eb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 30642,
"upload_time": "2024-11-30T07:08:01",
"upload_time_iso_8601": "2024-11-30T07:08:01.450108Z",
"url": "https://files.pythonhosted.org/packages/51/37/def5d2341fb281daea027bda980daaf65b0e45745c876afbf33b775cf3db/eduworld-0.0.28.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-30 07:08:01",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": true,
"codeberg_user": "helkaraxe",
"codeberg_project": "algoworld-python#readme",
"lcname": "eduworld"
}