
Clap as many times as you can in 7 seconds, but no more than 24 times… that’s the game and it will make you crazy.
The game has 3 pages: page 1 is for clapping, page 2 is victory and score, page 3 is game over.
page 1

Setup
The first 3 rules setup the game environment.
- play a sound to tell the user clapping started

- set variable
Xto 1, variableXwill hold the clap count

- start a clap animation on the screen

Clapping
The 4th rule increments the variable X when a clap is detected.

Transitions
The last two rules handle transitioning to winning or loosing state.
- after 7 seconds, switch to page 2 and show score

- when the counter hits 25, the player clapped too many time and switch to page 3 for game over

page 2

The 7 second expired and the player clapped 24 or less times, show score and switch back to page 1 after 10 seconds.
page 3

The player clapped too many times, show game over animation and switch back to page 1.