Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
53
Task/Mastermind/00-TASK.txt
Normal file
53
Task/Mastermind/00-TASK.txt
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
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 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 colors may be repeated in the code
|
||||
|
||||
<br>
|
||||
The (computer program) game should display all the player guesses and the results of that guess.
|
||||
|
||||
Display (just an idea):
|
||||
:::::: {| class="wikitable" border="1"
|
||||
|-
|
||||
! 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: <big> 1. ADEF - XXO- </big>
|
||||
<br>Translates to:
|
||||
<br>the first guess;
|
||||
<br>the four colors (ADEF);
|
||||
<br>result:
|
||||
:::: two correct colors and spot,
|
||||
:::: one correct color/wrong spot, one color isn't in the code.
|
||||
|
||||
Happy coding!
|
||||
|
||||
|
||||
;Related tasks:
|
||||
* [[Bulls and cows]]
|
||||
* [[Bulls and cows/Player]]
|
||||
* [[Guess the number]]
|
||||
* [[Guess the number/With Feedback]]
|
||||
<br><br>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue