Text worlds for interactive agents
A modular toolkit for building text-based simulation environments where agents move, act, communicate, and cooperate through text and tile-based worlds.












Agents do not live in the real world, so WordPlay gives them worlds made of words. WordPlay is a Python framework for constructing environments for interactive agents. Environments are built from four composable primitives: Entities, Actions, Systems, and Movement. This makes it easy to go from a tiny grid world to a bustling multi-agent environment with inventory, combat, communication, and trading. Environments can be rendered as text descriptions or tilemaps, and agents can be controlled by language models, scripted policies, or humans. The framework also includes text-grid adaptations of DeepMind's full Melting Pot scenario suite.
Under the hood, every environment follows the same loop: observe, choose an action, validate it, execute it, run shared systems, and render the next state.
The same interface supports human policies, scripted policies, and LLM policies, so you can swap the driver without rebuilding the world. Components and systems can be mixed, matched, and extended without pulling the rest apart.
Entities, actions, systems, and movement models snap together like building blocks. Swap the movement system without touching the combat code.
Agents act from natural-language action descriptions. Plug in OpenAI, OpenRouter, or local models through one shared interface.
Drop in a human policy for interactive play, debugging, or data collection. Same world, different driver.
Render environments as text descriptions or as 2D tilemaps with sprite assets. Replay and live-view rendering are built in.
Built for multi-agent settings with communication, trading, shared tasks, and the occasional glorious mess of coordination.
Text-grid adaptations of DeepMind's full Melting Pot scenario suite — some examples below.
A few small worlds to get you moving: chat, trade, and a single-point room where three agents share one abstract location.
Chat
Private conversation rendered as in-world speech bubbles.
Trade
Negotiation rounds add items to each side of the offer.
Single-point summit
Agents share one abstract location, ringed around a round table taking turns to speak.
WordPlay includes text-grid adaptations of DeepMind's Melting Pot — the full scenario suite, reimagined as text and tile-based worlds.






































Two commands, one grid world, one human-controlled agent:
See the GitHub repo for the current code, examples, and setup details.
If WordPlay is useful in your work, reference the project repository:
The name "WordPlay" was suggested by Darci Prout.
Sprite assets in the tilemap renderer come from open-licensed packs including
DawnLike, Kenney Tiny Dungeon, and Mana Seed Character Base.
See sprite_library/art_source/citations.md for full credits.