Skip to content

azzamalmassah/Math-Quiz-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Math Quiz Game (C++)

A console-based Math Quiz Game developed in C++ that tests the user’s arithmetic skills through randomly generated questions. The game supports multiple difficulty levels, different operation types, score tracking, and provides final performance feedback with console color effects.


🎮 Features

  • User-defined number of questions (1–10)
  • Difficulty levels:
    • Easy
    • Medium
    • Hard
    • Mixed
  • Operation types:
    • Addition
    • Subtraction
    • Multiplication
    • Division
    • Mixed operations
  • Random number generation
  • Real-time answer validation
  • Correct and wrong answer tracking
  • Pass / Fail evaluation at the end
  • Console color feedback for results
  • Option to replay the game

🛠 Technologies Used

  • Language: C++
  • Concepts:
    • Enums
    • Structs
    • Functions
    • Switch-case logic
    • Loops and conditionals
    • Random number generation
  • Libraries:
    • <iostream>
    • <string>
    • <cstdlib>
    • <math.h>
  • Environment: Visual Studio (Console Application)

▶️ How to Run

  1. Open the project in Visual Studio
  2. Build the solution
  3. Run the program
  4. Follow the on-screen instructions to:
    • Choose number of questions
    • Select difficulty level
    • Select operation type
    • Answer math questions

📊 Game Flow

  1. User selects the number of questions
  2. User selects difficulty level and operation type
  3. Game generates random numbers based on difficulty
  4. User answers each question
  5. Game evaluates answers immediately
  6. Final result (Pass / Fail) is displayed
  7. User can choose to play again

🎯 Learning Outcomes

  • Implementing difficulty-based logic
  • Using enums for clean game state management
  • Handling user input and validation
  • Designing modular and reusable functions
  • Applying randomization in C++
  • Managing game flow and result summaries

👤 Author

Azzam Almassah

📜 License

This project is created for educational and learning purposes.

📂 Project Structure

About

A console-based Math Quiz Game developed in C++ that tests the user’s arithmetic skills through randomly generated questions. The game supports multiple difficulty levels, different operation types, score tracking, and provides final performance feedback with visual console effects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages