Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goodylabs/frontend-dev-test
https://github.com/goodylabs/frontend-dev-test
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/goodylabs/frontend-dev-test
- Owner: goodylabs
- Created: 2016-12-14T14:18:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-07T21:34:52.000Z (about 4 years ago)
- Last Synced: 2024-08-04T20:03:33.756Z (5 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 12
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-recruitment-tests - Goodylabs - Implement a method for a Tetris like game. (JavaScript)
README
#### To get started
```
$ npm i
$ npm start
$ open http://localhost:9100/
```#### Task:
Implement blockClicked to remove (or hide) the target element and all blocks of the same colour that are connected to the target element then allow the blocks above the removed to fall down (similar to Tetris but you should click a block to have connected blocks removed).
E.g.,
Given:
![Initial state](https://trottski.s3.amazonaws.com/snaps/initial.jpg)
After clicking one of the bottom right blue boxes it should then look
like this:![state 2](https://trottski.s3.amazonaws.com/snaps/stage2.jpg)