Skip to content

derickson/python-ai-dnd

Repository files navigation

python-ai-dnd

######################################################
  /$$$$$$  /$$$$$$       /$$   /$$ /$$$$$$$   /$$$$$$ 
 /$$__  $$|_  $$_/      | $$$ | $$| $$__  $$ /$$__  $$
| $$  \ $$  | $$        | $$$$| $$| $$  \ $$| $$  \__/
| $$$$$$$$  | $$        | $$ $$ $$| $$$$$$$/| $$      
| $$__  $$  | $$        | $$  $$$$| $$____/ | $$      
| $$  | $$  | $$        | $$\  $$$| $$      | $$    $$
| $$  | $$ /$$$$$$      | $$ \  $$| $$      |  $$$$$$/
|__/  |__/|______/      |__/  \__/|__/       \______/ 
######################################################

Setup

source env/bin/activate
python3 -m pip install --upgrade pip
pip install -r requirements.txt

create a run.sh script with the following

#!/bin/sh
export OPENAI_API_KEY="YOUR OPENAI API KEY"
python3 app.py

Run this script to play D&D with an AI player.
You must be the game master

The game doesn't have a natural ending, so ctrl-c to get out.

Releases and Progress

v2 - 2023-04-17 - Multiple NPCs play with a human GM, lots of cleanup v1 - 2023-04-16 - AI NPC plays D&D with a human GM in search of treasure. The AI NPC is a warrior.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages