Trivia Game
Description
A fun and interactive trivia game built with JavaScript, HTML, and CSS. This game challenges users with a series of questions across various categories, testing their knowledge and quick-thinking skills. Great for learning and entertainment!
Features
- Multiple Choice Questions: Users are presented with several possible answers to each trivia question, selecting the one they believe is correct.
- Score Tracking: Keeps track of the user's score, updating it based on correct and incorrect answers.
- Timer for Each Question: Adds excitement and a sense of urgency by limiting the time allowed to answer each question.
Technologies Used
- JavaScript: Game logic and interactive features
- HTML: Structure of the game interface
- CSS: Styling for a visually appealing user experience
Setup
-
Clone the repository:
git clone https://github.com/yourusername/trivia-game.git cd trivia-game -
Open the index.html file: Simply open the
index.htmlfile in your web browser to start playing. -
(Optional) Run a local server: For a smoother experience, especially with JavaScript, consider using a local server.
# For example, using Python python -m http.server -
Access the game: Go to
http://localhost:8000in your browser if using a local server.