Page 58 - RoboGenius Pro C5
P. 58

STEP - 14   Drag the hand block from the Variables category and drop it in place

                                 of the first 0, so it reads if hand = 0.

                   STEP - 15   Drag the 0 = 0 block from the Logic category and place it in the else if
                                 condition.


                   STEP - 16   Drag the hand block from the Variables category and drop it in place
                                 of the first 0, so it reads else if hand = 1.


                                                on  shake

                                                 set   hand   to  pick random  0  to  2


                                                  if    hand   =     0    then


                                                  else if  hand  =     1    then


                                                  else






                   STEP - 17   Add a show icon block from the Basic category in the if hand = 0 section
                                 and choose the rock icon.


                   STEP - 18   Add show icon block in the else if hand = 1 section and choose the

                                 paper icon.

                   STEP - 19   Add show icon block in the else section and choose the scissors icon.


                                                on  shake

                                                 set  hand    to  pick random  0  to  2

                                                  if    hand   =     0    then


                                                   show icon

                                                  else if  hand  =     1    then

                                                   show icon

                                                  else
                                                   show icon








                                 RoboGenius Pro - V
                 56
   53   54   55   56   57   58   59   60   61   62   63