Mastermind
The classic game of codemaker vs. codebreaker
Description
Play Mastermind, the classic game of codemaker vs. codebreaker, in Shortcuts.
You can choose whether Siri or a human opponent is the codemaker. The code is made of four digits between 1 and 6. (Decide in advance whether repeated digits are allowed.)
The codebreaker then has ten chances to guess the code correctly. After each attempt, feedback is generated automatically by the shortcut to give the codebreaker some clues:
- Red dot: correct digit in correct place
- White dot: correct digit in incorrect place
- Nothing: incorrect digit
The order of the dots does not correspond to their positions in the code, however. The codebreaker must take the number of dots of each color and make an educated guess as to which dot corresponds to each position in the code.
If you guess the code correctly, you win! If not, then after ten attempts, you lose, and you will be able to see the correct code.
Made in collaboration with @robric18.