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.
-
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
- Clone the repository using the command below.
git clone https://github.com/julian776/WhoWantsToBeMillionaireGPT.git
-
Fill and create the
.env
file; you can use the provided.env.template
as a starting point. Update the variables with your specific values. -
Create your virtual environment with the following command.
python -m venv ./venv
-
Activate the virtual environment.
-
Install the dependencies from the
requirements.txt
file. -
Run the repository using the command
python main.py
.