```
when green flag clicked
ask [Please enter a number of dots less than or equal to 31:] and wait
```

```
if <<(number of dots) < [31]> or <(number of dots) = [31]>> then
else
end
if <<(number of dots) > [16]> or <(number of dots) = [16]>> then
end
if <<(number of dots) > [8]> or <(number of dots) = [8]>> then
end
if <<(number of dots) > [4]> or <(number of dots) = [4]>> then
end
if <<(number of dots) > [2]> or <(number of dots) = [2]>> then
end
if <<(number of dots) > [1]> or <(number of dots) = [1]>> then
end
```

```
set [number of dots v] to (answer)
set [number of dots v] to ((number of dots) - (16))
set [number of dots v] to ((number of dots) - (8))
set [number of dots v] to ((number of dots) - (4))
set [number of dots v] to ((number of dots) - (2))
set [number of dots v] to ((number of dots) - (1))
```

```
say [Please choose a number less than or equal to 31.]
say [16] for (1) secs
say [8] for (1) secs
say [4] for (1) secs
say [2] for (1) secs
say [1] for (1) secs
```