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.3.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.3-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: miniworlds_robot-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f1a7c49bc4af5ee9b0d9f31f681dff5245fba1495e617327bf220404c06ed238
MD5 4b939c94a6b1a4a656345ed6cdaca067
BLAKE2b-256 a4ff4dd89cf94546e6d0dbd8f0aeb2684a7808e24ac68dbdf45b8f22904f3e62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for miniworlds_robot-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab91b31da7f4835f8cd281b3d876e051c4ac5711e6466605333f6dc529d2822e
MD5 821fc6ab5349aec72e4747575b400ed4
BLAKE2b-256 adafff2eb30def063928656560a24b4f2c914cb2384e511881d35c734bc5a77d

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