by Trey Weldon
The goal of the game is to crack the secret code in 10 attempts or less.
- A black peg is returned for each guess that is a correct color and also in the correct location.
- A white peg is returned for each guess that is a correct color but in the wrong location.
- The order of the pegs does not necessarily correlate with the secret code.
- The secret code may or may not have duplicate colors, so don't rule that out as a possibility.
- JavaScript
- HTML
- CSS
To make your guess:
- Select your answer by clicking on a color in the bank. Your selection will be added to the guess row.
- If you change your mind, select reset guess to clear the entire guess row.
- Click "Check Guess" to see if your guess is correct.
The next feature I would add is a hint button:
- This button would reveal one of the code elements at random but at the cost of one or two of the player's guesses.
- This would make it easier to guess the code while still maintaining a challenge.
- Another improvement would be animations—either for pegs being added or a celebratory effect when the code is cracked.




