Coder Social home page Coder Social logo

whowantstobemillionairegpt's Introduction

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.

whowantstobemillionairegpt's People

Contributors

julian776 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.