Inspiration

The idea for this interactive math game was inspired by a desire to create an engaging and educational application that helps users improve their arithmetic skills. I wanted to build something that is simple yet challenging, and that can adapt to different skill levels. The concept of integrating time limits adds an element of urgency, making the game more exciting and competitive.

What it does

This game gives users random addition problems to solve within a time limit. It adjusts the difficulty level, so you can get anything from easy single-digit problems to harder two-digit ones. Users type their answers on the keyboard, and their score goes up or down based on whether they get it right. The game also shows the remaining time and current difficulty level, and it ends when the time is up, displaying the final score.

How I built it

This project was built using Processing coding language! Here are some key steps that I used to make this game:

Variables and Setup: Set up variables for the score, problems, user answers, difficulty level, and game state. Initialized the canvas size and font in the setup() function. Game Logic: Used the draw() function to update the game state, check the time limit, and display the score, timer, problem, and user answer. Created the ProblemGen() function to generate new math problems based on the difficulty level. User Answers: Added the keyPressed() function to handle keyboard input, letting players type their answers, change the difficulty, and to submit their answers! Answer Checking: Made the checkAnswer() function to verify the user's answer, update the score, and create a new problem.

Challenges I ran into

Managing Time: Making an accurate countdown timer was tricky. I had to ensure the time was correctly calculated and displayed. Also, making it so the difficulty changes in the gameplay with seamless transition was pretty hard and frustrating!

Accomplishments that I was proud of

-Successfully making a fun game that changes difficulty levels. -Creating something that can help people get better at math while having fun. -Adding a timer to make the game more exciting and challenging.

What I learned

I learned how to handle what users input(keyPressed function), how to change the difficulty level and showing the difficulty level!

What's next for Math practice for ADDITION

-Adding More Operations: Expanding the game to include subtraction, multiplication, and division problems. -Adaptive Difficulty: Developing an adaptive difficulty system that adjusts the problem difficulty based on the user's performance.

Built With

Share this project:

Updates