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!
- Select File ⇒ New from the top toolbar to create a new project.
- Drag a when green flag clicked block from the Events Block Palette to the Scripts Area.
- Create a new variable in the Data Block Palette called Score.
- Drag a set () to () block from the Data Block Palette and snap it to the bottom of the when green flag clicked block.
- Make sure that the first value in the set () to () is Score and the second value is 0.
- 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.
- Drag another say () for () secs block to the Scripts Area and snap it to the bottom of the previous one.
- Drag an ask () and wait block from the Sensing Block Palette and snap it to the bottom of the script.
- Change the value of the first say () for () secs block to Hello!
- Change the value of the second say () for () secs block to Let us do some math!
- 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)