This is a very simple AI adventure builder and runner. It is designed to be used as a teaching tool for students to learn about AI and for the curious to just enjoy and play a game. The whole magic lies in the initial prompting. We are setting a context that defines how the game should be played.
- Enter OpenAI API Key
- Write an initial starting prompt (Topic, Character, Setting, etc.)
- Play the game
- Clone the repo
- Install the dependencies
- Run the app with streamlit.
streamlit run adventure.py
How to run (nix)
nix --experimental-features 'nix-command flakes' run github:christ0pher/ai-textadventure
Note:
--experimental-features 'nix-command flakes'
is only required if these features aren't already enabled in yournix.conf
.
The idea came during a birthday party and we started with playing around with chatGPT and elevenlabs to get the story read to you. Biggest shoutout to: