Closed johneastman closed 1 year ago
For both game modes, the high score is stored as a number, so we need to be able to determine whether that number represents time or number data.
GameMode
HighScore
getScore
Score
The implementation panned out differently than planned, but all the requirements have been implemented.
Commit: https://github.com/johneastman/circles/commit/0ce2b51904d97320b2ba18b3f0ec6ee36f41c622
For both game modes, the high score is stored as a number, so we need to be able to determine whether that number represents time or number data.
GameMode
enum created in #52.Initial Implementation Plan
HighScore
calledgetScore
that returns the score as a string based on the data type flag (number or time).Score
component that accepts as one of the props aHighScore
object and callsgetScore
to display the score.HighScore
toScore
.Places the score need to be updated