๐ฏ Quiz Application.
๐ Overview
This is a console-based quiz game written in C that allows users to:
Register and log in. Choose a difficulty level: Beginner (B), Intermediate (I), or Pro (P). Answer multiple-choice questions. Track their scores and save them to a leaderboard.
๐ Project Structure
main.c โ The core program that runs the quiz system. questions.txt โ Stores quiz questions, answers, and difficulty levels. users.txt โ Stores registered user credentials. leaderboard.txt โ Maintains user scores and rankings.
๐ Features
โ User Authentication โ Register and log in before playing. โ Difficulty Levels โ Choose from three levels: Beginner, Intermediate, or Pro. โ Randomized Questions โ Questions are shuffled to enhance replayability. โ Scoring System โ Tracks correct answers and saves scores to the leaderboard. โ Leaderboard Display โ View top scores after playing.
๐ File Formats
Each line follows this format: questions.txt
Question|Option1|Option2|Option3|Option4|Correct Answer|Difficulty Example: What is 2 + 2?|1|2|3|4|D|B D โ Correct answer (4th option). B โ Difficulty level (Beginner, Intermediate, Pro).
users.txt Username|Password Example: john_doe|securepass123
leaderboard.txt Username|Score|Difficulty Example: alice|10|Pro
๐ฎ How to Play
Register or log in. Choose a difficulty level. Answer up to 15 randomly selected questions. View your final score and save it to the leaderboard. Optionally, view the leaderboard or play again.
๐ฏ Additional Things that can be implemented in the Future
Implementing password encryption for security. Using SQL as DataBase instead of Files Add a GUI version using a graphical library. Introduce timed questions to make the game more challenging.
THANK YOU!!