Effacer les filtres
Effacer les filtres

Using one element of vector according to user input

1 vue (au cours des 30 derniers jours)
Ali
Ali le 16 Nov 2014
Commenté : Ali le 16 Nov 2014
I want to make a simple hangman game without graphics. As you know it requires user input.I want it to work in a way that as user inputs a letter it compares with the word vector and if the letter is in the word it replaces _ with that letter. For example word is 'MATLAB' if I enter M it appears as M..... THANKS

Réponse acceptée

Image Analyst
Image Analyst le 16 Nov 2014
There is code in the File Exchange http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=hangman - did you not know about those, or couldn't follow them?
  1 commentaire
Ali
Ali le 16 Nov 2014
I am new to this resource. Didnt know it was here. Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by