Mastermind: Difference between revisions
Content added Content deleted
(Created page with "Create a simple version of the board game: [https://en.wikipedia.org/wiki/Mastermind_(board_game) Mastermind]. It must be possible to: * choose the number of colors will be u...") |
No edit summary |
||
Line 9: | Line 9: | ||
The game should display all the player guesses and the results of that guess. |
The game should display all the player guesses and the results of that guess. |
||
Display: |
Display(just an idea.): |
||
{| class="wikitable" border="1" |
{| class="wikitable" border="1" |
||
|- |
|- |
||
Line 33: | Line 33: | ||
A text version example: |
A text version example: |
||
1 |
1: ADEF - XXO- |
||
<br>Translates to: |
<br>Translates to: |
||
<br>first guess; |
<br>first guess; |
Revision as of 09:44, 31 October 2016
Create a simple version of the board game: Mastermind.
It must be possible to:
- choose the number of colors will be used in the game(2 - 20)
- choose the color code length(4 - 10)
- choose the maximum number of guesses the player has (7 - 20)
- choose whether or not will be repeated colors in the code
The game should display all the player guesses and the results of that guess.
Display(just an idea.):
Feature | Graphic Version | Text Version |
---|---|---|
Player guess | Colored circles | Alphabet letters |
Correct color & position | Black circle | X |
Correct color | White circle | O |
None | Gray circle | - |
A text version example:
1: ADEF - XXO-
Translates to:
first guess;
the four colors(ADEF);
result: two correct colors and spot, one correct color/wrong spot one color is not in the code.
Happy coding!