フィルターのクリア

I need to design master mind,the game on gui...

2 ビュー (過去 30 日間)
Zayne
Zayne 2011 年 10 月 20 日
I want to generate 5 different colours then I want the user to select in what order the colours are,so that when the program sees a colour matching the position that the computer generated the colour,it must indicate that the player has guessed one position correct....I just need the basic functions....
Example......
%the computer generated 5 colours in the following order
1.Black 2.red 3.yellow 4.blue 5.magenta
%then the user selects the colours in the following order
1.Red 2.yellow 3.magenta 4.blue 5.black
%then a 1 should be displayed because the user had one colour correct...
I need the function to generate the random colours on a order an then I need a function that can scan the input of the user and see if any colour is in the same order as generated....
  1 件のコメント
Jan
Jan 2011 年 10 月 20 日
What is your question? Do you expect, that somebody posts a working program for you?

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2011 年 10 月 20 日
It is recommended to search in the web and in the FEX before posting. Then you will find:
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 10 月 20 日
Alas, all of those entries deal with "colors" rather than "colours". It might not be possible to do all the bug corrections within a reasonable time.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVideo games についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by