Question
Write a program of Hangman using arrays. Allow the user to guess letters and represent which letters have been guessed in an array. The target
Write a program of Hangman using arrays. Allow the user to guess letters and represent which letters have been guessed in an array. The target word should be a random word from the file , for eg: /usr/share/dict/words in the user computer and the word should be at least of 5 letters. The program should find the good words of at least 5 letters and should display the total number of good words in the file. Your program should be a text-based program that uses simple art (made out of asterisks, dashes, and the like) to display the state of the game. Old game states can just scroll off the screen as new states are printed.
java programming language. please provide the comments too. Thank you for the help.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started