Pseudocode
General Code
Start
Make a new variable called AlertTime
Parents set AlertTime through the PuzzleIt app
Loop Forever(
{This line is replaced with code that each module has individually, detailed below}
When the current time matches AlertTime:
Parents get a message with the amount of times their child played the game
Reset the amount of times their child completed the game
)
Color Boop
Turn on the light
Start timer
If the button is pressed in the given time:
Add one to the counter
Else:
Do nothing
After the button is pressed a certain number of times:
Decrease amount of time (Minimum 5 seconds)
Color Press & Light-Up Safari
One of the available buttons light up at random
Start a timer
If the button is pressed in the given time:
Add one to the counter
Else:
Do nothing
After the button is pressed a certain number of times:
Decrease amount of time (Minimum 5 seconds)
Copycat
A button lights up
Store the lit button in memory, as a part of an array
If the corresponding button is pressed:
Continue the loop
Else:
Restart
Once 5 buttons are pressed correctly:
Add one to the counter
Restart
.png)