This Sketchware project is a game in which the user has to break the 4-color code using logic and deduction.
Objective
- Crack the hidden code of 4 colors within 8 attempts.
Available Colors
- 🔴 Red
- 🟢 Green
- 🔵 Blue
- 🟡 Yellow
- 🟣 Purple
➡️ Colors can repeat in the code.
How to Play
- Select colors by tapping the color buttons.
- You must choose exactly 4 colors.
- Use Delete to remove the last selected color.
- Press Submit to check your guess.
Understanding the Result
✅ Correct Position
- Number of colors that are correct and in the correct position.
🔁 Correct Color (Wrong Position)
- Number of correct colors placed in the wrong position.
Example
Secret Code: 🔴 🟢 🔵 🟡
Your Guess: 🔴 🔵 🟣 🟢
Result:
- Correct Position = 1 (🔴)
- Correct Color Wrong Position = 2 (🟢 and 🔵 misplaced)
Winning the Game
- If all 4 colors are correct and in the correct position:
- 🎉 You crack the code
- Message shown: “You cracked the code in X attempts!”
Losing the Game
- You have a maximum of 8 attempts.
- If not solved within 8 attempts:
- ❌ Game Over
- The correct code may be revealed.
Download the project
Unzip the downloaded file. Then open the .swb file using Sketchware Pro.