Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Hangman Game in Java - Full Tutorial

Coding with John via YouTube

Overview

Learn to build a complete Hangman game in Java from scratch in this comprehensive tutorial. Explore file input, keyboard input, and String manipulation techniques while creating a game compatible for both single and multiplayer modes. Follow along as the instructor codes live, demonstrating key concepts such as randomizing words, creating game logic, implementing user input, and designing winning and losing conditions. Gain practical experience in Java programming by developing a functional game application, suitable for beginners looking to improve their coding skills.

Syllabus

Intro
Hard Version
Randomizer
Randomizing Words
Writing the Game
How Hangman Works
Creating the List
Printing a Dash
Print Word State
Print to Current State
Input from User
Looping
Testing
Exiting
Correct Count
Boolean
PrintWordState
Ending the Game
Winning the Game
Guess the Word
Guess the Word Again
Losing Conditions
Printing Out
Player Guess
Testing Player Guess
Print Hangman
Test
Two Player Version
If Statement
Clearing Console
New Lines
Testing the Game
No Cheating
Limit Difficulty
Outro

Taught by

Coding with John

Reviews

Start your review of Hangman Game in Java - Full Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.