Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

MudGym

A Gymnasium reinforcement learning environment for MUD2. One of the first online multiplayer text adventure games.

Setup

A Docker engine is required to run the game. The image ghcr.io/rolo/mudgym is pulled automatically on first use.

Install MudGym from PyPI:

uv add mudgym

Quickstart

from mudgym import make_env

env = make_env(observation="parsed")
observation, info = env.reset()
observation, reward, terminated, truncated, info = env.step("howl")
print(observation["room_name"], reward)
env.close()

Docs

See the docs for more examples.

License

The Python code and tooling in this repository are made available under the MIT License.

Permission to use the MUD2 game for research purposes has been provided by Richard Bartle, with kind thanks. The MUD2 game, name, source code, and associated story remain the intellectual property of Richard Bartle and Roy Trubshaw and may not be used for commercial purposes.

Download files

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

Source Distribution

mudgym-0.3.0b2.tar.gz (72.5 kB view details)

Uploaded Source

Built Distribution

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

mudgym-0.3.0b2-py3-none-any.whl (91.2 kB view details)

Uploaded Python 3

File details

Details for the file mudgym-0.3.0b2.tar.gz.

File metadata

  • Download URL: mudgym-0.3.0b2.tar.gz
  • Upload date:
  • Size: 72.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mudgym-0.3.0b2.tar.gz
Algorithm Hash digest
SHA256 c0c84b7ccb6ec3f7ca15729e6841eaf05dc7e4f91c83b6745f131c1cc18a14cd
MD5 2674350febadc91d4f169c581d381406
BLAKE2b-256 86317b23631c4d31b6e685adc59a6f0bb8a41601a6587ffb8459346aa315aea7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mudgym-0.3.0b2.tar.gz:

Publisher: release.yml on rolo/mudgym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mudgym-0.3.0b2-py3-none-any.whl.

File metadata

  • Download URL: mudgym-0.3.0b2-py3-none-any.whl
  • Upload date:
  • Size: 91.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mudgym-0.3.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ee8ebbd2a00eee0d02827d8ff5fa84e5122bd59ddeb67973e35f2087ff1b347
MD5 327b7612a3654b6b0abb076dadf329fb
BLAKE2b-256 ec039ce97d26b3027dece78629ae7c90168f2c03e608a94bf3dfc35a0023ca3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mudgym-0.3.0b2-py3-none-any.whl:

Publisher: release.yml on rolo/mudgym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

This release

0.3.0b2 This release

2 files

Supported by

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