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
Let's use exceptions to help control the flow of the game.
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
We've only got a few user stories left.
0:00
So the next one up is, as a guesser,
I should be stopped from making a guess
0:03
that has already been made
so that I do not waste turns.
0:07
Sounds good.
0:10
I'll pop this over to in progress.
0:11
Okay,
so let's think this through real quick.
0:13
So when we pass a guess into our game
object via apply
0:16
guess, we currently just add it to hits
or misses.
0:20
What we need to do before we do
any of that
0:24
is to add a check
to see if it's already been guessed,
0:26
which we can do
by seeing if it's in hits or misses.
0:29
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