Step 5: Choosing a Random Hole Part 3

Goal:


4 down! 2 more to go!

Once you finish coding, make sure there are 6 if then statements total that each codes one of the 6 moles.

Steps:

  1. From Control, place an IF/THEN block.
  2. From Operators, place an = block and place it inside the IF/THEN block
  3. From Variables, place a round positionChooser block on the left side of the = block.
  4. Type in the number 5 on the right side of the = block.
  5. From Variables, place a set to block inside the IF/THEN block. Set the variable to be nextX and the number 0.
  6. From Variables, place a set to block under the previous one. Set the variable to be nextY and the number to -60.
  7. Repeat this process 1 more time, editing the numbers so that your code looks exactly like the code shown.

Code: