Other Operations - Tryout

Activity: Make a Math Practice Game

You will create a math practice game that will challenge you with math questions and keeps score of how well you did in answering ten questions. The activity will prompt you to choose between addition and multiplication, then it chooses two random numbers on which to do the operation.

We will start by making a sprite ask what operation you want to practice. We will start with addition and multiplication, but you can expand the program to include any type of operations!

  1. Select File ⇒ New from the top toolbar to create a new project.
  2. Drag a when green flag clicked block from the Events Block Palette to the Scripts Area.
  3. Create a new variable in the Data Block Palette called Score.
  4. Drag a set () to () block from the Data Block Palette and snap it to the bottom of the when green flag clicked block.
  5. Make sure that the first value in the set () to () is Score and the second value is 0.
  6. Drag a say () for () secs block from the Looks Block Palette to the Scripts Area and snap it to the when green flag clicked block.
  7. Drag another say () for () secs block to the Scripts Area and snap it to the bottom of the previous one.
  8. Drag an ask () and wait block from the Sensing Block Palette and snap it to the bottom of the script.
  9. Change the value of the first say () for () secs block to Hello!
  10. Change the value of the second say () for () secs block to Let us do some math!
  11. Change the question in the ask () and wait block to Do you want to practice addition or multiplication (enter + or x)?




(There are no discussion topics yet in this forum)