Skip to main content

MudGym

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

Browser Quickstart

No install needed, through the magic of WebAssembly.

See the game and env in action at the MudGym Playground.

Or run and train against the game in JupyterLite notebooks:

Local Setup

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.

Citation

@misc{Mawlabaux2026MudGym,
	author = {Mawlabaux, Rolo},
	year = {2026},
	title = {MudGym},
	doi = {10.5281/zenodo.22730678},
	url = {https://rolo.github.io/mudgym/},
}

To cite a specific release, use its version DOI from Zenodo. You can also use GitHub's sidebar link.

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.

Metadata

Release files for mudgym 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mudgym 0.7.2
File Size Uploaded Provenance Actions
mudgym-0.7.2.tar.gz 86.7 kB With provenance Details for mudgym-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mudgym 0.7.2
File Interpreter ABI Platform Actions
mudgym-0.7.2-py3-none-any.whl Python 3 none any Details for mudgym-0.7.2-py3-none-any.whl

Total release size: 191.3 kB

Release files / mudgym-0.7.2.tar.gz

Download URL mudgym-0.7.2.tar.gz
Size 86.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5352d0252a5e1ca14dc6abbf726b6b500ec1c87f2e5fb9e2cfff97e672b454e0
BLAKE2b-256 checksum
How to use checksums
0383e202031643e4b0d6255abdb8aebc51ff376ab190fcdfa937f8407be060fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / mudgym-0.7.2-py3-none-any.whl

Download URL mudgym-0.7.2-py3-none-any.whl
Size 104.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d01a5e9f699724c35ae3cae46b5a97d0f93a6ae219ddbd421d6361a6a4cc078
BLAKE2b-256 checksum
How to use checksums
c001c795c2f89695c7d09116fa1e069f9504f6e6af552b624588d634abe2ece1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for mudgym 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mudgym-0.7.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page