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 use loops and chaining to solve the final story.
This video doesn't have any notes.
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
As a guesser, I should be able to know
when the game is won or lost
0:00
so that I can acknowledge completion
with celebration or tears.
0:00
Alright, so we can definitely do this.
0:04
So we should provide a method
0:07
that returns whether or not
the game was completed successfully.
0:08
So how do we do that?
0:12
Well, one way to do it is to just check
and see if there's any blanks left.
0:13
We should just start with this approach.
0:18
If there is a blank,
the game has not been won.
0:20
And then we should have the prompter
0:22
display the final outcome, spreading
the good or bad news to our users.
0:24
Here we go.
0:28
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