This is a small project exploring how conversation chaining and involving multiple 'characters' in a single chat looks like.
This is a minimal game that is inspired from Dungeons & Dragons type of narration and experience.
-
Clone this repository
-
Set up a virtual environment (recommended)
python -m venv .venv
python .venv/Scripts/activate
-
Install the required packages
pip install -r requirements.txt
-
Use a local LLM service or a cloud provider for inference. You can modify the
config.py
LLM Configuration constants to suit your need.For my use case,I've used LM Studio as my LLM server provider (Ollama also works), and tried this program with
openai/gpt-oss-20b
andgoogle/gemma-3-4b
(This program supports any LLM Model, with or without reasoning)
-
Start the game
python main.py
- Improve narration and add actions like dice rolls and results
- Integrate a RAG module to ground the actual rules of D&D
- Dynamic Player Creation and saving current state of an ongoing campaign