Rock, Paper, Scissors – Video

Picking a Random Number Video





Rock, Paper, Scissors (part 3)

Exercise: Rock, Paper, Scissors, Part 3

Now let’s add a third sprite to play the referee! After the duck and the cat say their choices, the referee should say who won (or if there was a tie).

How can the referee tell who wins? Make if statements for the referee to follow.

  • What should be inside the if statements? Hint: an “equal” block.
  • How do we get the referee to say who wins after the cat and duck say their choices? Hint: use the broadcast block.
  • Another hint: you should only be using 1 broadcast block, in the cat’s code or the duck’s code. Why can’t you use a “broadcast referee” block in both the cat’s and the duck’s code?