The Great RGB Guessing Game

Thought you knew all your colour? Think again! Guess the RGB colour number to win this browser-based game.

In this project, I wanted to create an in-browser game which practised using JavaScript DOM manipulation and tied together my knowledge of HTML and CSS.

Play the game here: https://beatriceopara.github.io/rgbGame/index.html

Game Instructions
The player must guess what RGB color number in order to win the game.
There are two modes: Easy and Hard.

RGB stands for Red, Green, Blue. This a a color model in which red, green and blue and mixed together in various way reproduce a broad range of colors.

A color in the RGB color model is described by indicating how much of each of the red, green, and blue is included. The color is expressed as an RGB triplet (r,g,b).

The values to produce new colors are often stored as integer numbers in the range 0 to 255.

E.g.
Red would be RGB (255, 0 , 0)
Green would be RGB (0, 255 , 0)
Blue would be RGB (0 , 0 , 255)
The RGB color is randomized each round, so no two rounds are the same

Inspired by this project? Showcase projects you’ve worked on and inspire other people.

Like what you see? Be the first to leave a comment for Beatrice!

Add comment
Junior Front End Developer