Classic HangMan Game
Purpose : Classic hangman (hangchicken in this case) game. This gui is written as an example for the DSA lecture to explain Matlab GUI's.
1 - Run the function,
2 - Click on "Load List" to load a text list, select "austria_cities.txt" or "countries.txt"
3 - Click on "Start",
4 - You will be asked a word in the selected list randomly,
5 - Push keyboard letter keys and try to estimate the word,
6 - You have 5 trials for the correct answer. Otherwise, chicken will be grilled,
7 - You can create your own word list. Create a text file, add your words. Each word should be on new line.
Cite As
Latif Yalcinoglu (2026). Classic HangMan Game (https://www.mathworks.com/matlabcentral/fileexchange/27407-classic-hangman-game), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
- Gaming > Strategy & Logic >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
