Skip to content

natalietom/ColorGuessingGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Color Guessing Game

Learning to recognize the Red-Green-Blue color model

This interactive game displays RGB followed by a value from 0-255, 0 meaning no color from that primary color, and each value representing an amount of red, green, and blue in that order. The goal is to correctly determine the color through the combination of red, green, and blue among the presented colored squares.

Examples of RGB combinations: RGB(255, 0, 0) is red, RGB(0, 0, 0) is black, and RGB(255, 255, 255) is white.

Live Demo

Play this game at:

https://natalietom.github.io/ColorGuessingGame/

Features

  • Modes: Easy/Hard
  • Guide Message
  • New Colors

Modes: Easy/Hard

The game includes an easy or hard mode which controls the number of colored squares to guess from. Initially, the game starts in hard mode with 6 choices and one square being the correct combination. To switch to easy mode, click "EASY" to generate a new set of 3 colors and a new RGB to guess.

Guide Message

Once the game begins by clicking a colored square, a guided message will be displayed. This message includes, "try again" and "correct!". After the correct color is chosen, a Play Again button is displayed to allow a new set of colors to be generated.

New Colors

The 3 values are randomly generated and by clicking "NEW COLORS", a new set of colors as well a new RBG will be displayed.

Built With

  • Javascript
  • HTML
  • CSS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published