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
Happy trails...
Extra Features
There are a few stories that were left in the backlog, try giving them a shot!
- As a prompter, I should know the name of the guesser so that things can appear more friendly.
- As a prompter, I should know the highest score, so that it can be used to encourage competition.
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
Congratulations!
0:00
You've built a complete,
working, word-guessing game from scratch.
0:02
You should be proud
of what you've accomplished here.
0:06
Let's take a moment
to appreciate what you've learned.
0:09
You started with basic Java syntax
and built up to creating multiple classes
0:11
that work together.
0:15
We covered objects, methods, constructors,
0:17
and how to organize code
and the logical components.
0:19
The game you built demonstrates
some important programming principles.
0:23
Notice how the Game class handles
all the game logic,
0:27
like tracking guesses, managing tries,
and determining wins,
0:29
while the Promptor class focuses
entirely on interacting with the user.
0:33
This separation makes your code easier
to understand and modify.
0:37
If you wanted to add new features,
maybe difficulty levels, hint systems,
0:41
or even a graphical interface,
0:45
you can modify one class
without breaking the others.
0:47
That's
the power of good object-oriented design.
0:51
You've learned
0:55
enough Java fundamentals
that when you encounter new concepts
0:55
or look at documentation,
many things will start to click.
0:58
The vocabulary you've built here,
classes, objects, methods, parameters,
1:02
and so on, forms the foundation
for everything else you'll learn.
1:07
This is just the beginning
of your programming journey.
1:11
Take some time to play
with the code, experiment with changes,
1:14
and most importantly,
be proud of what you've built.
1:18
Great job,
and I'll see you in the next one!
1:20
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