Filter löschen
Filter löschen

Hangman game help

1 Ansicht (letzte 30 Tage)
Chris
Chris am 4 Dez. 2011
Quick briefing. I'm trying to create a program that will simulate a hangman game. My professor already gave me a list of words to follow. And I used the random function to select which word is chosen. Now, I have zero idea to get the user involved. The program should terminate when either all letters have been guessed correctly (player wins) or a specified number of incorrect guesses have been made (computer wins). Use a solution array to keep track of the solution so far. Initialize the array to a string of ‘*’. Each time a letter in the word is guessed, replace the corresponding ‘*’ with that letter.
I JUST NEED SOME IDEAS. But, if you want to help more you can!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 4 Dez. 2011
See input(), questdlg(), uicontrol(), text()... there are lot of different ways it could be done.

Weitere Antworten (0)

Kategorien

Mehr zu Strategy & Logic finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by