Skip to content

henaorth16/color-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 Color Sorting Puzzle Game

A fun and interactive color sorting puzzle game built with HTML, CSS, and JavaScript! Test your brain, sharpen your eyes, and pour colors with style using smooth animations. 🌈✨


πŸ•ΉοΈ Gameplay

Sort all the colored blocks into their respective containers! Each color must be grouped in a single column. Move colors by clicking to select and then clicking another container to pour β€” just like real-life liquid puzzles.

Game Preview


🌐 Live Demo

πŸ‘‰ Play it live here!


πŸ”§ Features

  • 🎲 Randomized puzzles every time you play
  • 🎯 Winning logic to detect your big brain moment
  • πŸš€ Animated pouring effect for visual feedback
  • πŸŒ€ Dynamic level control with just one variable
  • πŸ–±οΈ Intuitive click-and-pour interaction
  • πŸ’‘ Built for web β€” no installations required!

🧠 How It Works

  • The game generates N boxes (boxAmount), each filled with a mix of colors.
  • Your goal: Group identical colors into the same box.
  • One box can only hold up to 4 colored blocks.
  • You can only pour if:
    • The destination box has space.
    • The color you're pouring matches the top color of the destination.

πŸ› οΈ Tech Stack

  • HTML5 – Semantically structured UI
  • CSS3 – Pouring animations & style
  • JavaScript – Core logic, DOM manipulation, and interactivity

πŸ§ͺ How to Play Locally

  1. Clone this repo:
    git clone https://github.com/your-username/color-sort-puzzle.git
    cd color-sort-puzzle
  2. Open index.html in your browser.

πŸ™Œ Contribute

Pull requests are welcome! Feel free to fork the repo and improve the game or animations. πŸ˜„


πŸ“„ License

This project is open-source and available under the MIT License.


Made with ❀️ by Henok

About

color sort game clone with javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published