AI Engineer - Learn how to integrate AI into software applications
Learn Excel and Financial Modeling the Way Finance Teams Actually Use Them
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