The game works by setting up an array of colored clickable squares on the screen. One of these squares background color matches a pre-defined 'correct' color, whose rgb code is displayed on top of the screen. The player clicks on the square whose color he/she thinks matches the given rgb code. The choice he/she makes is compared against the correct color, and magic happens. Pretty neat, ja?
Aaaaam....read the js code. It's not that hard to understand. Really it isn't.
Clone the repo as is to your machine. Open the html file (in the src folder) and you're ready to play. Simple as that.
Besides a browser (Chrome is preferred, for reasons I will not give), none whatsoever.
- Vanilar js
- Visual Studio Code Editor.
- dMithamo.
This project is protected by the laws of ... Ha! Gotcha. Just Kidding. Feel free to use what part of this project (or all of it) as you please. It is completely free. If you can spare a second to suggest an improvement, or just high five me, I'd sure be grateful.