Skip to main content

Educational package to learn computational thinking and other basic programming concepts

Project description

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)

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

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

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eduworld-0.0.26.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

eduworld-0.0.26-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file eduworld-0.0.26.tar.gz.

File metadata

  • Download URL: eduworld-0.0.26.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for eduworld-0.0.26.tar.gz
Algorithm Hash digest
SHA256 36dec760b50e7820c9cc0156269bd54744c316334aabff73d14f2d1498bf39b9
MD5 d0e276de4a4c05d087f156555a87d8b3
BLAKE2b-256 f266ee6c382d11640c94b979f158b585f04798c4f4c7efe92dbc898b2afc16df

See more details on using hashes here.

File details

Details for the file eduworld-0.0.26-py3-none-any.whl.

File metadata

  • Download URL: eduworld-0.0.26-py3-none-any.whl
  • Upload date:
  • Size: 41.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for eduworld-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 62b07b75d1967349e8bdda46ddf550b80d736ceb8059a8ad436999c5588c307e
MD5 67a04c3ecff59a9053c40ee047d9d8b7
BLAKE2b-256 d7cca65d3dedf105f32271ee809d37d345ff80cf73b6a5e7a3a7794483abc1cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page