Skip to content

McKenzieJDan/mfet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"Blockchain" Puzzle

To get started

npm i
# or yarn
npm start
# or yarn start

http://localhost:9100/ will open automatically on the blockchain app, live-reloading as you develop.

yarn test & yarn test:watch to run the unit tests on the terminal.

Task

Implement blockClicked to remove (or hide) all blocks of the same colour that are connected to the target element (block chain), then allow the blocks above the removed to "fall down" (similar to Tetris but you should click a block to have connected blocks removed, and the price of bitcoin).

E.g.,

Given:

Initial state

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

state 2

Notes

Please do not publicly fork this repository, if you submit via github (prefered) please downlaod the zip and init your own repo, this is so that other people can't copy your work. Feel free to overwrite this section of the readme with anything you think we should know about your solution.

Good luck!