We require a flash stopwatch game which counts down from 3 seconds to 0.
There should be an energy label which starts at 3,000.
There should be a score label starting at 0
There should be a button labelled "bid".
On load the timer starts counting down from 3 to 0 (showing milliseconds if possible). The user should click the bid button as close to 0 as possible. The number of milliseconds left to 0 should be deducted from the users energy. Everytime the bid button is clicked the user's score increases by one.
Should the timer reach 0 or the users energy <= 0 the game ends.
I will sort out storing the score, styling etc. I simply want the functionality above for this project.
I require fully commented source code.