Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

RGB Color Guessing Game

A fun and interactive Python game built with Tkinter where you test your ability to guess RGB colors!


How It Works

  1. Click "New Color" --- a random color appears on screen.\
  2. Enter your guess for R (Red), G (Green), and B (Blue) values (each between 0--255).\
  3. Press "Guess" to check how close your guess is.\
  4. The app calculates the Euclidean distance between your guess and the target color.\
  5. If you guess correctly, a new color is automatically generated!

Features

  • Simple Tkinter GUI\
  • Random RGB color generation\
  • Input validation (ensures integers between 0--255)\
  • Displays distance feedback\
  • Auto-refreshes when correct

Requirements

  • Python 3.x\
  • Tkinter (comes pre-installed with Python)

Run the Game

  1. Save the script as rgbgame.py\
  2. Open a terminal in the folder\
  3. Run:
python rgbgame.py