joshuadanpeterson / trivia-game

Nucamp JavaScript Fundamentals Trivia Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trivia Game

Overview

This is a simple Trivia Game built using HTML, CSS, and JavaScript. It's designed to quiz users on various topics. Each question comes with multiple-choice answers, and the game keeps track of the user's score as they progress.

Features

  • Dynamically loaded trivia questions
  • Scorekeeping functionality
  • Visually appealing UI with Bootstrap 5
  • Easy to add new questions or modify existing ones

Prerequisites

  • Basic knowledge of HTML, CSS, and JavaScript
  • A modern web browser

Installation

  1. Clone the repository:

    git clone https://github.com/joshuadanpeterson/trivia-game.git
    
  2. Open index.html in your web browser.

Usage

  1. Click the "New Question" button to load a new trivia question.
  2. Type your answer into the input field.
  3. Click the "Submit Answer" button to submit your answer.
  4. The game will display whether you got the answer correct and update your score accordingly.

Code Structure

  • index.html: Contains the structure of the game.
  • style.css: Contains the styling for the game (if applicable).
  • questions.js: Contains the questions for the trivia game.
  • trivia.js: Contains the JavaScript logic for the game functionality.

Built With

  • HTML
  • CSS
  • JavaScript
  • Bootstrap 5

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

Nucamp JavaScript Fundamentals Trivia Game


Languages

Language:JavaScript 74.1%Language:HTML 25.6%Language:CSS 0.3%