1.POCE.4: Timer


Begin by forking this starter code repo:​


Match Game Countdown Timer

Add a countdown timer to 1.POCE.3: Match Game. End the game when the time runs out.

Match Game Stopwatch

Below is a sample UI for a stopwatch we can implement. Build and test the stopwatch in stages. The following are stopwatch features.
  1. 1.
    Counts up seconds, minutes and hours.
  2. 2.
    Can be stopped.


Match Game Countdown Timer Reset

When the timer runs out, turn all the cards back over and reset the game. Message the user they've lost.

Stopwatch Reset

Add functionality to reset the stopwatch we created above.

More Comfortable

Stopwatch Laps and Splits

Implement the following features for our stopwatch.
  1. 1.
    Record lap times, for example time between matches. What would be an appropriate data structure to record lap data?
  2. 2.
    Shows splits at each lap, for example the differences in times between matches.

Reference solution

Click here to see the reference solution for this post class