Using one element of vector according to user input
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
Image Analyst
2014 年 11 月 16 日
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?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!