Looking for a flash reaction timer.
When a start button is pressed the game begins.
It shows the phrase "FIRST TRY. PLEASE WAIT"
At a random time, the word phrase changes to "press X" (where "x" is a random letter of the alphabet). A clock starts showing the time in milliseconds.
When the player presses the correct letter on their keyboard the timer stops.
Next the phrase "SECOND TRY. PLEASE WAIT" is displayed and the game continues (using random letters each time).
After FIVE attempts, the average time in ms is shown.
If the time is one of the fastest five, the player gets a "Congratulations" message and is asked for their name and put on the leader board. (Data can be stored in a text file or mySQL database but these will be on a different domain). The leader board should be visible at the start of the game.
As admin, I need to be able to reset the leader board.