Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Java Objects - Word Guessing Game!
You have completed Practice Java Objects - Word Guessing Game!
Preview
We will figure out how to inform the user about the current state of the Word puzzle.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
I'll move this story card
into the In Progress column.
0:00
So current progress,
that would be like blank
0:04
slots to show what has been guessed
and what needs to be guessed.
0:06
So for example, our game instance
has the answer treehouse right now.
0:10
So in order to show the progress
0:15
when there was no guess,
we do something like this.
0:17
And then when the guess was applied
to the game using apply
0:21
guess, it stores that in our hits
or misses variables.
0:23
So let's assume that the guess
for the letter T was applied.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up