Skip to content

zmaswad05/Math-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

C++ Math Game

Introduction

This C++ Math Game Console App is a simple program designed using functional programming principles to help users practice their arithmetic skills through a series of randomly generated math questions. Users can customize the number of questions, choose the difficulty level, and select the type of operations they want to focus on. The game provides instant feedback on each answer and summarizes the user's performance at the end of the session.

Features

  • Customizable number of questions.
  • Three difficulty levels: Easy, Medium, and Hard.
  • Four basic arithmetic operations: Addition, Subtraction, Multiplication, and Division.
  • Mix mode for both difficulty levels and operations.
  • Instant feedback on answers.
  • Color-coded interface for correct and incorrect answers.
  • Final result summary showing the number of correct and incorrect answers.

How to Use

  1. Compile the Code: Use a C++ compiler to compile the provided source code.
  2. Run the Executable: Execute the compiled binary file to start the game.
  3. Game Setup: Follow the prompts to set up the game:
    • Enter the number of questions you want to answer.
    • Choose the difficulty level (Easy, Medium, Hard, or Mix).
    • Choose the operation type (Addition, Subtraction, Multiplication, Division, or Mix).
  4. Answer Questions: Answer the randomly generated math questions displayed on the screen.
  5. Feedback: Instant feedback will be provided for each answer.
  6. Result: After answering all the questions, a summary of your performance will be displayed, showing the number of correct and incorrect answers.
  7. Play Again: You have the option to play again by entering 'Y' or 'N' when prompted.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages