Skip to content

AhmedSharaawy/Project-2-Math-Game-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Key Concepts Used

  • ✅ The player can choose the number of questions.
  • ✅ Difficulty levels are available: Easy, Medium, Hard, or Mixed.
  • ✅ The player can select the operation type: Add, Subtract, Multiply, Divide, or Mixed.
  • ✅ Questions are generated randomly to ensure a different experience each time.
  • ✅ The program checks answers instantly and updates the score (Right vs. Wrong).
  • ✅ At the end of the quiz, a clear summary is displayed including:
    • Total correct answers
    • Total wrong answers
    • Final result (Pass / Fail)
  • ✅ Console colors change for better user experience:
    • 🟢 Green = Right
    • 🔴 Red = Wrong

What I Practiced

  • ✔️ Using Enums and Structs to manage data.
  • ✔️ Random number generation for dynamic question creation.
  • ✔️ Functions and modular programming for a clean structure.
  • ✔️ Handling user input and controlling game flow.
  • ✔️ Simple error handling to ensure graceful behavior with unexpected inputs.
  • ✔️ Replay loop logic allowing users to restart the quiz smoothly.

About

Project in C++ : Math Quiz Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages