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

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner-friendly tutorial builds a complete Hangman game in Java from scratch. It covers file and keyboard input, String manipulation, game loops, testing, and support for one or two players.

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.