Instructions
Objective
Your aim is to guess the computer's secret code within up to 10
attempts.
The computer randomly generates a secret code of four colored pegs
from six available colors, allowing for repeats.
Gameplay
The player makes a guess by selecting a sequence of four colored
pegs from the available colors and submits it.
Repeated colors are allowed in the guess.
Repeats are allowed.
The computer provides feedback after each guess.
Feedback consists of a series of smaller pegs or markers placed
adjacent to the guess.
Results
Black pegs indicate a guessed peg that is the correct color and in
the correct position.
Gray pegs indicate a guessed peg that is the correct color but in
the wrong position.
The positions of the result pegs (black and gray) do not
correspond to the order of where the correct color is in the
guess.
Winning
The player wins by guessing the code within the allotted attempts.
The computer wins if the player fails to guess the code.
×