Skip to content

DaniS91/teamWeek-1

Repository files navigation


By Ambi Hidalgo, Dani Steely, Cameron Abel, Mike Wilkes & Tyler Quinn


openQuest

Is an AI-driven text-adventure game developed during students' first Team Week at Epicodus. Utilizing openAI's API beta, openQuest proceduerally generates a text-adventure game through chained API calls to the davinci-3-model; creating a unique experience everytime. Key feature information in prompts are then used to make a second call to openAi's Dalle 2 model to generate an image for every scene.

Technologies Used

  • openAi's API beta
  • Davinci-3-Model
  • Dalle 2 Stable Diffusion Model
  • node
  • npm
  • Javascript
  • CSS
  • HTML

Setup/Installation Requirements

Note: you will need your own API key from openAI to be able to play this game. A free API key for for can be found here.

  • Clone this repository (https://github.com/ambibma/https://github.com/ambibma/teamWeek-1)
  • using terminal to navigate to teamWeek-1 repository file
  • Once in the project directory
      $ npm install
      $ npm run build
  • Once in the repo file you will need to add folder in main directory called: ".env"
    $ touch .env
  • Add your API Key to the .env file using the following syntax
    OPENAI_API_KEY={API KEY GOES HERE}
  • In index.js there is a variable stored in a configuration constructor of the openAi object on line 7 of the code. If done correctly you should be able to use the program after doing
    $ npm run start

Known Bugs

  • Choices are sometimes not correctly parsed into the buttons of the game send bug concerns to [email protected]

License

Copyright (c) Ambi Hidalgo 2022