C++ implementation of the game Mastermind for Foothill College CS 2A.
-
Secret code length is 4
-
Key "pegs":
| Code | Meaning |
|---|---|
| * | when letters match on the same position |
| - | when letters match on different positions |
| (blank space) | when letters don't match |
-
Each guess or secret letter must match one to one
-
* takes precedence over -
| Secret | Guess | Key |
|---|---|---|
| torn | mana | - |
| abby | tube | * |
| case | tara | * |
| case | ebra | -- |
- Xinyu Wen
- Leonardo de Oliveira Lourenço