https://github.com/bonface221/color-game
color-game
https://github.com/bonface221/color-game
Last synced: 3 months ago
JSON representation
color-game
- Host: GitHub
- URL: https://github.com/bonface221/color-game
- Owner: bonface221
- License: mit
- Created: 2022-06-28T18:26:33.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T22:25:20.000Z (almost 3 years ago)
- Last Synced: 2025-01-12T06:43:15.689Z (5 months ago)
- Language: JavaScript
- Homepage: https://bonface221.github.io/color-game/
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# color-game
Color Game provides a player with a color in RGB format e.g: RGB(0,0,0) and tiles with different colors. The tiles can be 6 or 9, depending on the number selected by the player. The player is expected to choose the tile matching the RGB color. If they do, they win.If the player wins:
- All the tiles change their color to the RGB.
- A text is displayed saying they have won and a new game will start.
- A new game starts after a second with a different RGB and tiles.If the player clicks on the wrong tile:
- The tile disappears and they get a chance to click on the remaining tiles.Hint: use loops, high-order array methods and conditional statements.