Triangulating Game Progress Tracking by Refactoring
Continue designing the scoring interface with triangulating game progress tracking for playing the Wordz game.
We'll cover the following
At this point, nothing needs our urgent attention. We can move on to tracking progress through the game.
Triangulating progress tracking
We need to track the number of guesses that have been made so that we can end the game after a maximum number of attempts. Our design choice is to update the attemptNumber
field in the Game
object and then store it in GameRepository
:
We add a test to drive this code out:
Get hands-on with 1400+ tech skills courses.