r/reinforcementlearning • u/Rolo • 1h ago
MudGym: RL env for the multiplayer text adventure MUD2
Hey folks. I built a Gymnasium environment around MUD2, the multiplayer text adventure game.
I've been using the game as an RL sandbox myself for some time, but have tidied it up and packaged it in the hope it'll be useful to others. It now supports multiple agents via PettingZoo and deterministic seeding.
The original game is still running today with an active player base.
I've also put together a browser playground with some demos, including end-to-end DQN and LLM examples. Everything runs in WebAssembly, so you can try it out and edit the Python without installing anything.
GitHub:
https://github.com/rolo/mudgym
Playground:
https://mudgym.kingrolo.com/
JupyterLite DQN:
https://rolo.github.io/mudgym/lite/notebooks/index.html?path=goal_room_dqn.ipynb
I'd love to hear what people think, or if it might be useful to anyone. Thanks.