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 keep track of how many wrong guesses have been made when attempting to solve the puzzle and display the amount of tries remaining.
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 have left,
so I am encouraged to be cautious.
0:00
I'll move this ticket
right into the In Progress column.
0:00
So basically, this implies
that we're going to need to allow
0:05
multiple guesses through some sort of loop
until they run out of tries.
0:08
Now in order to do
that, we'll have to set a limit.
0:12
That limit is something
we want to make publicly available
0:15
and it's related to all games,
and shouldn't change.
0:18
We know how to do that.
0:21
Let's make a constant.
0:22
Let's sketch out the remaining tries
logic real quick.
0:25
So a standard game like this
typically allows you to miss seven times.
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