Math Quiz 🧮

Make an addition quiz tool

Demo The Project 👇

In this project we will create a game where the player is quizzed on their addition facts.

We will start by creating two variables. FirstNumber will stand for our first number and SecondNumber will stand for our second number. When our game begins we will set each of them to a random number between 1 and 10.

Then we need to ask the player what they think the answer is. We can do this using the ask block.

Next we'll handle figuring out if the player's answer is correct. If they are, we'll say "Great job!". If they aren't, we'll tell them what the correct answer was.

Finally we can wrap the whole thing in a forever block to keep the game going!

Going Further 🚀

  • How would this game work adding three numbers?
  • How would you make this game work for subtraction?
  • How would you let the player try again if they were wrong instead of telling them the answer?