Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

color-game-of-jagn

A lightweight web game built with HTML, CSS, and JavaScript. The player is shown a random color and must guess its correct RGB code from multiple choices. It is designed to be simple, interactive, and beginner‑friendly.

Features

  • Random RGB color generator
  • Multiple choice options with one correct answer
  • Instant feedback on guesses
  • Score tracking for consecutive correct answers
  • Responsive layout for desktop and mobile

How It Works

  1. A random RGB color is generated.
  2. The color is displayed as a square on the screen.
  3. Several RGB codes are shown as options.
  4. The player selects one:
    • If correct, a new color is generated.
    • If wrong, the game prompts to try again.

Setup Guide

  1. Clone the repository:
    git clone https://github.com/jagnCoder/jagn-color-game-HTML-TS.git
  2. Navigate to the project folder:
    cd jagn-color-game-HTML-TS/project-bolt-colorGame-xtsxkn3p
  3. Open index.html in your browser.
  4. Play the game directly—no additional setup required.

Project Structure

  • index.html – main game page
  • style.css – styling and layout
  • script.js – game logic and random color generation

Future Enhancements

  • Difficulty levels (easy: 3 options, hard: 6 options)
  • Timer mode for added challenge
  • Sound effects for correct and wrong answers

Would you like me to also add a short “Motivation” section (like “Built to practice DOM manipulation and RGB logic”) so it shows your learning intent behind the project? That often makes small games stand out more.

About

guess the color, test your imagination

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages