Skip to content

A customizable interactive fiction novel that utilizes GPT. Playable straight from your terminal!

License

Notifications You must be signed in to change notification settings

that-one-arab/gpt-interactive-novel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT Interactive Novel

A customizable interactive fiction novel that utilizes GPT. Playable straight from your terminal!

Chat Preview

Features

  • Experience an interactive fiction novel with a clear beginning and end goal.
  • Choose your own story setting and theme.
  • Insert as many characters as you want to the story.
  • Choose your story length
  • Choose between choice based novels or free text novels

Game demo video:

demo.mp4

Setup

  • Clone this repository by running git clone https://github.com/that-one-arab/gpt-interactive-novel
  • CD into the work directory cd gpt-interactive-novel
  • RECOMMENDED: Create a virtual environment. if you use virtualenvwrapper you can run mkvirtualenv gpt-interactive-novel
  • Install required libraries pip install -r requirements.txt
  • Copy example .env file cp .env.example .env
  • Add your OpenAI key to the .env file

Usage

  • CD into the work directory if you're not already in it
  • Run python index.py

Limitations

Some game features do not work well with gpt-3.5, due to that it is recommended to use gpt-4 to play the game.


Buy me a coffee

Do you think I deserved a coffee break? buy me one!

Buy Me A Coffee


License

This project is licensed under the terms of the MIT license.


About

A customizable interactive fiction novel that utilizes GPT. Playable straight from your terminal!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages