Do you like to count? Today we will make a counting game.

In this activity we will learn to generate a number of apples randomly. Then the player should answer the correct number of apples. If he gets it correct his score will increase, otherwise he should count the apples again. Good luck, have fun!

Download the Building Instructions Guide Below

Link to Building Guide


What you will be learning in this Lesson?

In the above Scratch Activity you will be exploring the below concepts in detail

Random generation


Random generation is to create objects with random properties. For this example we will randomly generate different number of apples.


Getting text input


So far we have worked with input in the form of using the arrow keys, mouse movement and mouse clicks. In this activity we will learn how to get input in the form of text and how to work with that input.


Use of variables



Variables are very useful to keep values stored in your program. We will be using one variable to keep a track of the score. Every correct answer will get one point added to the score.

The other variable keeps a count of the apples. This variable is hidden so that the user has to input the answer for the number of apples