Overview
In this project, we will create a Color Guess Game from scratch using Javascript. The objective of the game is to guess colors given in the RGB format.
Project Goals
- Learn about using DOM manipulation in Javascript.
- Become familiar with Event Handling and functions.
- Get to know the RGB Color Model.
Our final project will look like this:
An RGB color value is displayed on top, i.e. RGB(213, 213, 40) here. The player has to guess which of the six colors is represented by that value. If you click on a wrong color, the circle will fade out and a “Try Again” message will be shown. If you guess the correct answer, background of all the circles including the header will change to the color of the correct circle. When you click the NEW COLORS button, the game will reset and new colors will be shown to you.