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
-
Clone the repository:
git clone https://github.com/joshuadanpeterson/trivia-game.git
-
Open
index.html
in your web browser.
Usage
- Click the "New Question" button to load a new trivia question.
- Type your answer into the input field.
- Click the "Submit Answer" button to submit your answer.
- 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.