Skip to content

Gowtham-314/math-game-python

Repository files navigation

Math Game

A simple, interactive command-line math quiz game built in Python. Test your arithmetic skills with an endless stream of random questions!

Description

This script generates random arithmetic problems interacting with the user in a CLI environment. It covers basic operations (Addition, Subtraction, Multiplication, Division) and tracks the user's score throughout the session.

Features

  • Infinite Gameplay: The game generates questions indefinitely until you decide to stop.
  • Randomized Questions: Problems involve random integers (1-1000) and random operators (+, -, *, /).
  • Score Tracking: Keeps a running count of your correct answers.
  • Smart Division: Automatically rounds division answers to 3 decimal places to ensure playability.
  • Input Validation: Gracefully handles non-numeric inputs so the game doesn't crash.

How to Run

  1. Ensure you have Python installed.
  2. Run the script using the command line:
    python "imported math_game.py"

About

A Python math game featuring infinite random arithmetic problems, score tracking, and personalized user interaction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages