Skip to content

A guessing game where you match a color with its RGB Model. Good luck!

Notifications You must be signed in to change notification settings

SidneyBuckner/colorgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Game

A simple JavaScript Application Exercise.


Welcome to my Color Game! This is a small application for implementing JavaScript with HTML and CSS. This is a guessing game that gives you a color based on its Red, Green and Blue Color Model. Then, out of the four choices of colors displayed, you will guess which color matches the RGB Color Model by clicking on the color. If you pick the right color, congratulations! You advance to the next round! If you guess wrong, the color you clicked will disappear and you have to guess again! Good luck!

Features:

  • Clickable colors squares to guess which color matches the RGB Model
  • A reset button to display a new set of colors should the user want to change them
  • [https://mycolorgame.netlify.com/]

Updates:

6/1/2018
  • Added Ternary Operator for refactoring experiment (line 18)
  • Changing Font Size of h1 so display will be one line on responsive small devices
  • Additional refactoring
5/31/2018
  • Added function to randomize colors to display in boxes
  • Created a Reset Button to choose another set of colors
  • Modified Background Color to match the correct picked color
  • Background color resets to black when the game is restarted
  • Adjustments to design, font sizes, margins and set color scheme
  • Made transition fade for colors when incorrect
  • Some refactoring
5/30/2018
  • Initial Repository created
  • Added six hard-coded colors to sample, created loop to list colors
  • Created if/else statement to determine is user clicked on correct color
  • User answer prompted with either a correct or incorrect alert
  • Added function to offer random numbers to fee from hard-coded RBG array
  • All colors will turn when the correct color is picked

Assets and code created by Sidney Buckner. May 2018.

About

A guessing game where you match a color with its RGB Model. Good luck!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published