https://github.com/garybake/daid
https://github.com/garybake/daid
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/garybake/daid
- Owner: garybake
- Created: 2026-03-13T23:07:26.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-03-13T23:44:57.000Z (4 months ago)
- Last Synced: 2026-03-14T10:58:27.525Z (4 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DAID
A turn-based text RPG social encounter powered by GPT-4o-mini. You have 8 turns to extract a secret from two NPCs at the Lantern Inn — a protective clerk and an enforcer who wants you gone.
## Setup
```bash
python -m venv venv
source venv/Scripts/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
```
Copy `.env.example` to `.env` and add your OpenAI API key:
```
OPENAI_API_KEY=sk-...
```
## Running
```bash
make run
# or
python main.py
```
## How to Play
Type your character's words or actions at each `>` prompt. The two NPCs — **Mara** (the clerk) and **Bram** (the enforcer) — will respond based on how you approach them.
**Win:** Get Mara to reveal the secret location.
**Lose:** Push Bram too far and get thrown out, or run out of turns.
## Debug Mode
Set `CHAT_DEBUG=true` in `.env` to print each NPC's stance values after every turn.