Skip to main content

Actor-based robot worlds for miniworlds

Project description

miniworlds-robot

miniworlds-robot is a small extension library for miniworlds. It provides robot worlds with a restricted, configuration-driven API for learners.

The library builds everything from miniworlds worlds and actors. It does not load pygame sprites or expose pygame primitives.

The package is intentionally kept separate from the miniworlds core package so it can later live in its own repository and be published on PyPI.

Example

from miniworlds_robot import Loader

world = Loader.load_world("basic")
robot = Loader.load_robot("standard", world, position=(1, 1))

robot.step()
robot.turn_left()

print(world.is_solved())
world.run()

Worlds can also be loaded from JSON URLs, including GitHub blob links:

from miniworlds_robot import load_robot, load_world

world = load_world(
    "https://github.com/USER/miniworlds-robot-worlds/blob/main/worlds/loop_square.json"
)
robot = load_robot(world=world, position=(1, 1))

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

miniworlds_robot-0.1.4.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

miniworlds_robot-0.1.4-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file miniworlds_robot-0.1.4.tar.gz.

File metadata

  • Download URL: miniworlds_robot-0.1.4.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for miniworlds_robot-0.1.4.tar.gz
Algorithm Hash digest
SHA256 35617c54373d4785dd1d5ff13022942e33775e34da4d5ddbbabd1f405c4a09ea
MD5 a4a6d69fce7446ad00b5061f6821b13f
BLAKE2b-256 73693cfe9bdbc23c4a99ec7216c5bd22d9c93739af4f0f249d0efe40f9b38459

See more details on using hashes here.

File details

Details for the file miniworlds_robot-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for miniworlds_robot-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3d68e3c0d77cff08b0ac32e5fb0cb278bb28be8e9ecc2a8a2fd50ddc47251d9c
MD5 88336fbed2eb3b510bf7b0f5136306c9
BLAKE2b-256 e505c8355bd1477cb0b155711d45fc28440b1b2f3216c4c3b26a15cf00db8c52

See more details on using hashes here.

Supported by

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