Skip to main content

A Gymnasium environment for maze-based reinforcement learning

Project description

MazeGym

codecov PyPI version

9x9 maze

Random moves are used for this demo.

Maze9x9

21x21 maze

Random moves are used for this demo.

Maze21x21

35x15 maze

Random moves are used for this demo.

Maze35x15

Environment Details

  • Action Space: Discrete(4) - Four possible actions: 0 (up), 1 (right), 2 (down), 3 (left). Invalid moves (moving into walls) results in an error.
  • Observation Space: Box(0, 3, (height, width), int8). Contains values: 0 for empty paths, 1 for walls, 2 for the agent, 3 for the goal.
  • Reward: 100 if the goal is reached, -1 for each step taken.
  • Done: True if the agent reaches the goal, False otherwise.
  • Truncated: True if maximum steps (3 × width × height) are exceeded, False otherwise.

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

mazegym-1.0.1.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

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

mazegym-1.0.1-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file mazegym-1.0.1.tar.gz.

File metadata

  • Download URL: mazegym-1.0.1.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mazegym-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7b36d91d87c196fb394da433455e4df994a29b662e0662570a94e6d468199051
MD5 07754d18ce1635681cd6a76101b08651
BLAKE2b-256 bb7f4f5d0ea97f7da1994c0c9d82a86f62340364e9916bb3ca0ee5dd8d260abb

See more details on using hashes here.

File details

Details for the file mazegym-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: mazegym-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mazegym-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d37385554c5dc4133e30ccb3897e03763f2e8655ebc554a70cadd27eb4f9ddf
MD5 10e4939ba6f1cb467acf29d4b14f90aa
BLAKE2b-256 49fa80b56239cd96bacd35620b014832aa0ec95647325c8d63f094a6cdbe6907

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