The code-maker selects arranges any 5 pegs in the compartment right in front of them, which is hidden from the code breaker. The code-breaker then has to make guesses as to what the code is by filling in rows of 5 pegs using the feedback from the code-maker (correct color/correct position, correct color/incorrect position, or nothing). There are twelve chances to break the code.
Codebreaker (Mastermind)
C$31.99Price

