Page 69 - Touchpad_Plus_V3.2_Class2
P. 69

The act of repeating an action again and again is called looping.



                 To play the game, follow the given steps:

                 Step 1     Click on the Turtle option. A dialog appears on the screen telling the user
                            what to do.
























                 Step 2     Click on the OK button to start the game.
                 A tip appears on the screen telling the user to choose a category from Turtle and

                 Loops to see the respective blocks.
                      The Turtle category has two blocks:
                      a.   The move…by block is used to make the turtle
                           move forward or backward to draw the shape.

                      b.   The turn…by block is used to rotate the turtle
                           in left or right direction by given angle.
                      The Loops category has one block:

                        The  repeat…times  do block is  used to make the turtle
                      repeat tasks given inside the block for given number of
                      times.
                 Step 3     Drag the following blocks and change required values to draw a square.

                 Step 4     Click on the Run Program button to see if the drawing is complete or
                            not.

                 Step 5     If the drawing is not complete, the Reset button appears in place of the
                            Run Program button. Click on the Reset button to return the turtle to
                            the original position. Check the block again and make necessary changes.





                                                                               More on Google Blockly Games          67
   64   65   66   67   68   69   70   71   72   73   74