Simple Code Breaker game made with pure JavaScript.
Open the index.html file.
You need to guess the 4 digit code. When you make an attempt, the game will show your guess and also how your guess compares with the hidden code.
There will be a list showing the compared results:
- If you guess the correct position of a digit it will be displayed as green ✅
- If you did not guess the correct position of a digit it will be displayed as red ❌
- If a digit from your guess is included in the code, but it is not on the correct position it will be displayed as yellow 🔄
You have 10 attempts to guess the code.