Getting Started Guide
CLASS 4
52
Mole game coding
Now you've completed the script for the condition "'Action=1". So let's combine the scripts we have created so
far.
If you combine them it will look like the script above. There is one thing added here, the 'infinite repeat' block. This
block means that it will check the internal script of the block repetively.
By using this block, the game will go through not just once but will continue until the script stops (until we have
GAME OVER).
This completes the coding when the number to be called from the computer is '1'.
If so, how do you write a script when you call a number between 2 and 6? Try it yourself.
Mole game coding activity