Page 76 - Ai Robogenius
P. 76
STEP - 8 Type the name hand in the New variable name: window.
hand
STEP - 9 Drag the set hand to 0 block inside the on shake block From the
Variables category.
This creates a variable to store a random value.
on shake
set hand to 0
STEP - 10 Drag the pick random 0 to 10 block from the Math category and place
it inside the set hand to 0 block and change the range to 0 to 2.
on shake
set hand to pick random 0 to 2
STEP - 11 Drag the if else block from the Logic category and place it below the on
shake block.
STEP - 12 Click the plus (+) icon on the block to add an else if section.
on shake
set hand to pick random 0 to 2
true
if true then
else if false then
else
AI RoboGenius - V
74

