Coder Social home page Coder Social logo

quizzical's Introduction

Quizzical

This is a quiz game built using React. Users can test their knowledge by answering trivia questions from various categories.

Technologies and Libraries Used

  • React
  • nanoid
  • Fetch API

Game Play

  1. When the game starts, the user is presented with a start screen.
  2. Upon clicking the "Start" button, the game fetches 5 trivia questions from the Open Trivia API.
  3. The questions are displayed one at a time, with the possible answers randomized each time.
  4. The user selects an answer by clicking on it.
  5. After all questions have been answered, the user can click the "Check Answers" button to see which answers were correct and which were wrong.
  6. The user can then start the game again by clicking the "Start again" button.

Demo-selectAnswers Demo-showAllanswers

Running the App

To play the game, follow this Quizzical.

Setup Instructions

  1. Clone the repository to your local machine.
  2. In the project directory, run npm install to install dependencies.
  3. Run npm run dev to start the app in development mode.

Note: A stable internet connection is required to play the game, as it fetches data from an external API.

quizzical's People

Contributors

chunyulo-code 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.