In the game of baseball, the batter hits the ball and then tries to touch all four bases, in order, before being tagged out. We will not do anything with the hitting the ball, just running the bases.
We talked about what variables you should use, and what they mean.
The most important variable is last base I got to
.
We talked about what the code should look like for base 1. There was an “if-then” block with different choices:
the last base I got to
is the one right before the base (zero):
set the last base I got to
to current base (1).
the last base I got to
is more than 1: cheater, can’t go back so
broadcast “Cheater”
One way to lose is have a stage backdrop that says “Cheater”.
when I receive [Cheater v] switch backdrop to [Cheater v] stop [all scripts v]