Skip to content

Sudo-1n17/Question-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Simple Quiz Game

A lightweight terminal-based quiz game built with Python! πŸš€

hi

πŸ“Œ Features

βœ… Loads questions from a JSON file
βœ… Displays multiple-choice questions
βœ… Validates user input and prevents errors
βœ… Checks answers and calculates score
βœ… Shows final results with a success percentage

πŸ“‚ JSON Format

Create a quizs.json file with questions like this:

[
    {
        "question": "What type of language is Python?",
        "options": ["Compiled", "Interpreted", "Machine", "All of the above"],
        "correct_answer": 2
    }
]

πŸš€ How to Run

  1. Make sure Python is installed on your system.

  2. Place your questions inside quizs.json.

  3. Run the script using:

    python main.py

🎯 Enjoy and test your knowledge! πŸ†

About

A very simple question and answer game with JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages