Adventurelib
A minimal library for writing text adventure games in Python 3
Install / Use
/learn @lordmauve/AdventurelibREADME
adventurelib
adventurelib provides basic functionality for writing text-based adventure
games, with the aim of making it easy enough for young teenagers to do.
The foundation of adventurelib is the ability to define functions that are called in response to commands. For example, you could write a function to be called when the user types commands like "take hat":
@when('take THING')
def take(thing):
print(f'You take the {thing}.')
inventory.append(thing)
It also includes the foundations needed to write games involving rooms, items, characters and more... but users will have to implement these features for themselves as they explore Python programming concepts.
Installing
adventurelib.py is a single file that can be copied into your project. You
can also install it with pip:
pip install adventurelib
Documentation
Related Skills
docs-writer
98.9k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
334.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
2.8kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
docs
High-performance, modular RAG backend and "Knowledge Engine" Built with Go & Gin, featuring Git-Ops knowledge sync, pgvector semantic search, and OpenAI-compatible model support.
