Skip to content

A simple interactive math quiz game with different difficulty levels and operations.

Notifications You must be signed in to change notification settings

SamirHamadaa/Math_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Math Quiz Game in C++ 🎯

📌 Overview :

This project is an interactive math game written in C++. The program generates random arithmetic questions for the user, with the option to choose the difficulty level and type of arithmetic operations. It tracks correct and incorrect answers and displays the final score after completing all the questions.

🛠 Features :

✅ Random arithmetic questions (+, -, ×, ÷)

✅ Choose difficulty level (Easy - Medium - Hard - Mixed)

✅ Track the number of correct and incorrect answers

✅ Evaluate the user's final score

🚀 How to Run :

1️⃣ Download the file proyecto.cpp to your device.

2️⃣ Open the file using any C++ editor like CodeBlocks or Visual Studio.

3️⃣ Compile and run the code using any C++ compiler (like g++).

4️⃣ Follow the instructions in the command line to answer the questions.

📝 Code Structure :

main() → The main entry point to start the game.

StartGame() → Contains the logic for running the game and restarting.

GenerateQuestion() → Generates random questions based on the selected difficulty level.

SimpleCalculator() → Performs different arithmetic operations.

PrintQuizzResults() → Displays the user's final score.

🖥 Requirements :

C++ Compiler (like g++)

Windows/Linux/macOS

Releases

No releases published

Packages

No packages published

Languages