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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mudgym-0.4.5.tar.gz.
File metadata
- Download URL: mudgym-0.4.5.tar.gz
- Upload date:
- Size: 80.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5110d7dbb823247f9a92794b7052355ae0aa58ebb65577906cac2731c6a4e86f
|
|
| MD5 |
933b80939288f65c0aea72eceaefea1f
|
|
| BLAKE2b-256 |
41b8eff03955df1056c34c0c8630d50d95a18a5822146495fcf8074071270146
|
Provenance
The following attestation bundles were made for mudgym-0.4.5.tar.gz:
Publisher:
release.yml on rolo/mudgym
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mudgym-0.4.5.tar.gz -
Subject digest:
5110d7dbb823247f9a92794b7052355ae0aa58ebb65577906cac2731c6a4e86f - Sigstore transparency entry: 2552657439
- Sigstore integration time:
-
Permalink:
rolo/mudgym@bf65c50477aec346000bca6c6b16ff4c2fa9f7d5 -
Branch / Tag:
refs/tags/v0.4.5 - Owner: https://github.com/rolo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bf65c50477aec346000bca6c6b16ff4c2fa9f7d5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mudgym-0.4.5-py3-none-any.whl.
File metadata
- Download URL: mudgym-0.4.5-py3-none-any.whl
- Upload date:
- Size: 102.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc48c4896e2ae2c3d537d61ed900583bdf709faa7b322ab0f91114f6b7d47e5
|
|
| MD5 |
b41d4e589622cc97630fb291857d78bc
|
|
| BLAKE2b-256 |
272e0b17f2d86e871f4809f082971be6acf9988e074da8dc94f1804ffd87b265
|
Provenance
The following attestation bundles were made for mudgym-0.4.5-py3-none-any.whl:
Publisher:
release.yml on rolo/mudgym
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mudgym-0.4.5-py3-none-any.whl -
Subject digest:
6cc48c4896e2ae2c3d537d61ed900583bdf709faa7b322ab0f91114f6b7d47e5 - Sigstore transparency entry: 2552657497
- Sigstore integration time:
-
Permalink:
rolo/mudgym@bf65c50477aec346000bca6c6b16ff4c2fa9f7d5 -
Branch / Tag:
refs/tags/v0.4.5 - Owner: https://github.com/rolo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bf65c50477aec346000bca6c6b16ff4c2fa9f7d5 -
Trigger Event:
push
-
Statement type: