Skip to content

Commit e405986

Browse files
authored
Update README.md
1 parent baa2fe6 commit e405986

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<p align="center">Illustration 1 - Layout of the Mastermind game window.</p>
66
</p>
77

8-
This is a Mastermind game with changed rules so that all possible combinations are calculated and the scoring is adjusted so it doesn't punish the correct lines of play. To make the scoring less based on luck and more on skill and correct reasoning, the amount of points that can be won is only reduced if there is one possible combination remaining, and the player makes the wrong guess.
8+
This is a Mastermind game with changed rules so that all possible combinations are calculated and the scoring is adjusted so it doesn't punish the correct lines of play. To make the scoring less based on luck and more on skill and correct reasoning, the amount of points that can be won is only reduced if there is one possible combination remaining, and the player makes the wrong guess at that point.
99

10-
This scoring allows players who played correctly but who didn't get lucky because they encountered the worst-case scenario for their guesses to still get the full amount of points. If the player gets lucky, and guesses before the number of possible combinations are reduced to one, he is still awarded the full amount of points. Points that can be won are only reduced if the correct guess can be made with 100% certainty because only one possible combination remains, and the player fails to make the guess.
10+
This scoring allows players who played correctly but who didn't get lucky because they encountered the worst-case scenario for their guesses to still get the full amount of points. If the player gets lucky, and guesses before the number of possible combinations are reduced to one, he is still awarded the full amount of points. Scoring like this only punishes the player if he reasons incorrectly because the points that can be won are only reduced if the correct guess can be made with 100% certainty, and the player fails to make the correct guess.
1111

1212
## Standard scoring in Mastermind
1313

14-
In a game of Mastermind with 6 signs and 4 positions, there are 1296 possible combinations for the correct guess initially. By guessing and receiving feedback for the guesses, the number of possible combinations can be reduced down to one. At that point, it is possible to guess the combination correctly with 100% certainty if the person reasons correctly based on available information. If the Knuth method is used ([Knuth - The computer as mastermind](https://www.cs.uni.edu/~wallingf/teaching/cs3530/resources/knuth-mastermind.pdf)) the worst-case scenario is that a person guesses correctly in five steps. If the player is lucky, he can of course make the correct guess at any point, well before he has reduced the number of possible remaining combinations to just one combination.
14+
In a game of Mastermind with 6 signs and 4 positions, there are 1296 possible combinations for the correct guess initially. By making guesses and receiving feedback for the guesses, the number of possible combinations can be reduced down to one. At that point, it is possible to guess the combination correctly with 100% certainty if the person reasons correctly based on available information. If the Knuth method is used ([Knuth - The computer as mastermind](https://www.cs.uni.edu/~wallingf/teaching/cs3530/resources/knuth-mastermind.pdf)) the worst-case scenario is that a person guesses correctly in five steps. If the player is lucky, he can of course make the correct guess at any point, well before he has reduced the number of possible remaining combinations to just one combination.
1515

1616
Current scoring for the mastermind game in "Slagalica" quiz in Serbia ([Scoring rules](https://www.rts.rs/page/rts/sr/rtspredstavlja/Slagalica/story/3054/pravila-i-prijave/3622033/pravila-su-pravila.html)) is based on the number of tries the player takes to guess the correct combination:
1717
* 20 points if the player guesses correctly on the first or second try
@@ -27,7 +27,7 @@ This means that the player will often get the full 20 points only if he gets luc
2727

2828
## Problem with standard scoring in Mastermind
2929

30-
The problem with the current scoring is that it punishes players who play correctly but don't get lucky to make the correct guess early. In the case that the player uses the Knuth method that guarantees the correct guess in 5 tries or less if the guess happens on the fifth try, he would get the minimum amount of points (Illustration 3). This is why standard scoring punishes correct play and rewards luck.
30+
The problem with the current scoring is that it punishes players who play correctly but don't get lucky to make the correct guess early. In the case that the player uses the Knuth method that guarantees the correct guess in 5 tries or less if the guess happens on the fifth try, he would get the minimum amount (10) of points (Illustration 3). This is why standard scoring punishes correct play and rewards luck.
3131

3232
<p align="center">
3333
<img src="/resources/readme/knuth_method_worst_case.jpg">
@@ -36,7 +36,7 @@ The problem with the current scoring is that it punishes players who play correc
3636

3737
## Proposed alternative scoring
3838

39-
It is fine for the player to get the full amount of points if he gets lucky and guesses the correct combination before he has reduced the number of possible combinations to one. These situations will happen because there is always a chance to guess correctly and the player should not be punished for being lucky.
39+
It is fine for the player to get the full amount of points if he gets lucky and guesses the correct combination before he has reduced the number of possible combinations to one. These situations will happen because there is always a chance to guess correctly and the player should not be punished for being lucky. Player should also not be punished if he gets unlucky and guesses correctly when there is only one posslbe combination remaining.
4040

4141
But if the player reduces the number of possible combinations down to one, and he fails to make a correct guess on the next try, then the number of points that he can win should be reduced.
4242
This point reduction is done because the player failed to reason correctly from the information that he has available.
@@ -62,3 +62,5 @@ This way the player can still get the maximum amount of points if he plays corre
6262
</p>
6363

6464

65+
66+

0 commit comments

Comments
 (0)