```
when green flag clicked
say (total number of dots)
```

```
if <(answer) = [W]> then
end
if <(answer) = [W]> then
end
if <(answer) = [W]> then
end
if <(answer) = [W]> then
end
if <(answer) = [W]> then
end
```

```
ask [What's your first card (B for black, W for white)?] and wait
ask [What's your second card (B for black, W for white)?] and wait
ask [What's your third card (B for black, W for white)?] and wait
ask [What's your fourth card (B for black, W for white)?] and wait
ask [What's your fifth card (B for black, W for white)?] and wait
```

```
set [total number of dots v] to [0]
set [total number of dots v] to ((total number of dots) + (16))
set [total number of dots v] to ((total number of dots) + (8))
set [total number of dots v] to ((total number of dots) + (4))
set [total number of dots v] to ((total number of dots) + (2))
set [total number of dots v] to ((total number of dots) + (1))
```