Skip to content

julian776/WhoWantsToBeMillionaireGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Who Wants to Be a Millionaire

Game where questions are generated by ChatGPT. Please note that not every question can be rendered correctly, as the Artificial Intelligence might make mistakes and provide questions in an incorrect format, making them unable to load. Additionally, you can save or finalize your interaction, and each time the server reloads, your previous session will be restored.

Info

  • Each question takes some time to display due to the slow interaction and response process.

  • The "questions" folder directs to the questions repository. We request ChatGPT to provide a structured response in JSON format, including the question, answer, and possible answers. The prompt used to interact with ChatGPT is as follows:

Give me a random question. Just answer me a JSON with what I just explained to you. Don't greet me, don't thank me, don't say anything extra. Answer in Spanish.
Example: {
  "question": "What is the capital of France?",
  "answer": "b",
  "options": {
    "a": "London",
    "b": "Paris",
    "c": "Berlin",
    "d": "Madrid"
  }
}
  • On save folder exists save.txt and has the information of games. Is organized as: user_name/round/cash

Running

  1. Clone the repository using the command below.

git clone https://github.com/julian776/WhoWantsToBeMillionaireGPT.git

  1. Fill and create the .env file; you can use the provided .env.template as a starting point. Update the variables with your specific values.

  2. Create your virtual environment with the following command.

python -m venv ./venv

  1. Activate the virtual environment.

  2. Install the dependencies from the requirements.txt file.

  3. Run the repository using the command python main.py.

About

Game where questions are generated by ChatGPT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages