Skip to content

🎯 Quiz/trivia game with AI generated questions, made with tailwind and the Cohere API in NextJS.

License

Notifications You must be signed in to change notification settings

cosmoart/quiz-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram

🟥🟦 Quizi 🟨🟩

A quiz/trivia game with different modes and categories that you can select, as well as wildcards to help you. The questions are generated by artificial intelligence using the Cohere API.

View Demo · Report Bug · Request Feature

Table of contents

About The Project

Quizi is a quiz/trivia game made with with Cohere. You can select different game modes and topics, you also have wildcards. Cohere's AI will generate the questions and answers for you.

Note: Due to Cohere's policy change (from 100 to 5 free calls) now only some questions are generated by Cohere. The rest are pre-generated.

⬆️ Back to top

Screenshots

⬆️ Back to top

Built With

List of the frameworks, libraries and tools used to build the project.

⬆️ Back to top

Getting Started

  1. Clone or fork the repo
git clone https://github.com/cosmoart/quiz-game
  1. Change directory to source_code
cd source_code
  1. Install NPM packages
npm install
  1. Run the project
npm run dev

If you are in development environment all the questions are pre-generated, if you want to use the Cohere API you have to create a .env.local file with the Cohere API key at source_code and comment the if in source_code/src/helpers/getQuestions.js. You can get one Cohere Api key here.

The .env.local file should look like this:

COHERE_API_KEY=XXXXXXXXXXXXXXXXXX

⬆️ Back to top

License

Distributed under the MIT License. See LICENSE.txt for more information.

⬆️ Back to top

Roadmap

  • Circle wipe transition
  • Add offline mode
  • Buttons sounds
  • Win and Lose sounds
  • Multi-language Support
  • PWA
  • Personalize the game over screen for infinite mode
  • Personalize error page for API limit exceeded

⬆️ Back to top

Contact

⬆️ Back to top

About

🎯 Quiz/trivia game with AI generated questions, made with tailwind and the Cohere API in NextJS.

Topics

Resources

License

Stars

Watchers

Forks