I just randomly used 8 quotes that are lines from movies or popular sayings as the possible puzzles. Let me know if there is any way I can improve the code!
Cite As
Aidan Mackey (2024). Hangman (https://www.mathworks.com/matlabcentral/fileexchange/70483-hangman), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
- Gaming > Word games >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
4.0.2 | I found a small issue that did not affect the game; however, it was a small detail I had missed earlier. If a correct letter that has already been is guessed again, it lets you know that you have already guessed that letter. |
||
4.0.1 | This is the final version! |
||
3.0.1 | Includes bug fixes from version 2.0.1 and reads capital letters. |
||
2.0.1 | The most recent update includes an option to have a friend create a puzzle for you to solve, or you can choose the option to play a randomly generated program. At this point, I need to add a function to convert the capital letters a user enters. |
||
1.0.4 | Added a picture to show what my code looks like |
||
1.0.3 | I added comments to the entire code to show what everything does thus allowing me to take out extra, unnecessary lines. |
||
1.0.2 | I added another puzzle with every letter in the alphabet just because I wanted to make a puzzle that was impossible to lose. My friend then typed in punctuation marks and found a way to lose so I added a catch to only recognize letters. |
||
1.0.1 | I added a catch feature if the user hits enter without inputting a letter first. |
||
1.0.0 |