1 in 3
Try itChance
This slime walks back and forth. Every 2 seconds it might jump. The script gives it a 1 in 3 chance.
How to read it
| Lines | What they do |
|---|---|
when I start and patrol | The slime walks back and forth |
every 2 seconds | This rule runs again and again, 2 seconds apart |
if a 1 in 3 chance | One time in three, the lines inside happen |
jump | The slime jumps |
when I reach an edge and turn around | The slime turns back at a gap, so it never walks off |
Try it
- Press Play
, under the little game. - Watch for 24 seconds. That is 12 tries, because 24 รท 2 is 12.
- Count the jumps on your fingers.
With a 1 in 3 chance, you expect about 4 jumps in 12 tries. You might see 2, or 6. Chance is like that.
Change the chance
- Press Stop
. - Press Blocks
, at the top left of the code box. There you can type any number. - Change the 3 to another number, then press Play
.
| Try this | What you expect in 12 tries | What kind of enemy it is |
|---|---|---|
| 1 in 1 | 12 jumps. Every time | Easy to learn. No surprise |
| 1 in 2 | About 6 jumps | Jumpy |
| 1 in 6 | About 2 jumps | Calm, then a shock |
This section ticks itself when you press Play
.

