A lightweight web game built with HTML, CSS, and JavaScript. The player is shown a random color and must guess its correct RGB code from multiple choices. It is designed to be simple, interactive, and beginner‑friendly.
- Random RGB color generator
- Multiple choice options with one correct answer
- Instant feedback on guesses
- Score tracking for consecutive correct answers
- Responsive layout for desktop and mobile
- A random RGB color is generated.
- The color is displayed as a square on the screen.
- Several RGB codes are shown as options.
- The player selects one:
- If correct, a new color is generated.
- If wrong, the game prompts to try again.
- Clone the repository:
git clone https://github.com/jagnCoder/jagn-color-game-HTML-TS.git
- Navigate to the project folder:
cd jagn-color-game-HTML-TS/project-bolt-colorGame-xtsxkn3p - Open
index.htmlin your browser. - Play the game directly—no additional setup required.
index.html– main game pagestyle.css– styling and layoutscript.js– game logic and random color generation
- Difficulty levels (easy: 3 options, hard: 6 options)
- Timer mode for added challenge
- Sound effects for correct and wrong answers
Would you like me to also add a short “Motivation” section (like “Built to practice DOM manipulation and RGB logic”) so it shows your learning intent behind the project? That often makes small games stand out more.