The Great RGB Guessing Game is an interactive and educational web application designed to help users learn and practice RGB color values. Built using HTML, CSS, and JavaScript, this game challenges players to guess the correct color based on its RGB value, enhancing their understanding of color theory and improving their ability to recognize and differentiate colors.
- Interactive Gameplay: Users are presented with multiple color options and must select the one that matches the given RGB value.
- Dynamic Feedback: Immediate feedback is provided to indicate whether the user’s guess is correct or incorrect.
- Difficulty modes: The game operates in two difficulty modes : easy and hard. In easy mode, the user is presented with 3 color options while in hard mode, the user is presented with 6 color options for a given RGB value.
- Multiple attempts: Players can make multiple attempts to guess the correct color, receiving feedback after each guess.
- HTML: Structure and layout of the game interface.
- CSS: Styling to enhance the visual appeal.
- JavaScript: Game logic, including generating random colors, handling user input, and providing feedback.
-
Clone the repository and open html file in your web browser or directly open the following link in your web browser:
https://rajeevranjan5642.github.io/rgb-guessing-game/
-
Select a difficulty mode i.e. either easy or hard. The default difficulty mode is hard. You can switch to any mode any time.
-
The game generates a random RGB color value and displays several color options based on the difficulty mode selected.
-
Selects the color you believe matches the given RGB value.
-
If the guess incorrect, you can try again until you find the correct color.
-
The game provides immediate feedback after each guess, indicating whether it is correct or incorrect.
-
You will be presented with an option to play again as the game finishes.
The game is deployed at github-pages.
🔗 https://rajeevranjan5642.github.io/rgb-guessing-game/