Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbrowns/dam-04-22-color-game
https://github.com/gbrowns/dam-04-22-color-game
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gbrowns/dam-04-22-color-game
- Owner: gbrowns
- Created: 2022-06-26T22:03:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-28T20:21:43.000Z (over 2 years ago)
- Last Synced: 2024-10-04T02:24:31.128Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.