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.
- 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
- 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)
- Open the project in Visual Studio
- Build the solution
- Run the program
- Follow the on-screen instructions to:
- Choose number of questions
- Select difficulty level
- Select operation type
- Answer math questions
- User selects the number of questions
- User selects difficulty level and operation type
- Game generates random numbers based on difficulty
- User answers each question
- Game evaluates answers immediately
- Final result (Pass / Fail) is displayed
- User can choose to play again
- 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
Azzam Almassah
This project is created for educational and learning purposes.