Skip to content

TaghiyevMahammad/quizgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Quiz Game

Quiz Game Banner

A simple and interactive quiz game where users can choose the range of questions and test their knowledge with randomly selected questions from that range.


๐Ÿš€ Features

  • โœ… User inputs for start and end question numbers
  • ๐ŸŽฒ Random selection of questions within the chosen range
  • ๐ŸŒˆ Visual feedback for correct and incorrect answers
  • ๐Ÿ“ Question status display (e.g., "Question 1 / 10")
  • ๐Ÿ† Final score displayed at the end
  • ๐Ÿ“ฑ Responsive and user-friendly design

๐Ÿ“‚ File Structure

/project-root

โ”‚

โ”œโ”€โ”€ index.html # Main HTML + JavaScript for running the quiz

โ”œโ”€โ”€ MM.txt # Text file containing questions and answers


๐Ÿ“ MM.txt File Format

  • Questions are numbered.
  • Answers start with either โ€ข (bullet) or โˆš (check mark)
  • The correct answer is marked with โˆš

Example: What is the capital of the Republic of Azerbaijan?

โ€ข Guba

โˆš Baku

โ€ข Ganja

โ€ข Sumgait


โšก How to Use

  1. Open index.html in a modern web browser.
  2. Enter the start and end question numbers, and the number of questions for the quiz.
  3. Click the Start Quiz button.
  4. Select answers for each question and click Check to verify.
  5. Click Next to proceed to the next question.
  6. At the end, the total number of correct answers will be displayed.

๐Ÿ›  Technologies

  • HTML5
  • CSS3
  • JavaScript (ES6+)
  • Fetch API for loading questions

โš ๏ธ Notes

  • The MM.txt file should be loaded via a server or local server environment due to browser security restrictions.
  • Fetch may not work properly when opening files via file:// protocol.
  • Recommended to use a local server, e.g., VSCode Live Server or Python http.server.

๐Ÿ“œ License

This project is open for educational and personal use.


๐ŸŒ Live Demo

Play the Quiz Game

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages