/thetest

Blocky

Primary LanguageJavaScript

To get started

$ npm i
$ npm start
$ open http://localhost:9100/

Task:

Implement blockClicked to remove (or hide) 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

After clicking one of the bottom right blue boxes it should then look like this:

state 2