# Install dependencies
yarn
# Start the app in watch mode on port 3001
yarn start
# Start the tests in watch mode on port 3002
yarn test
Your task is to create a game similar to candy crush.
When you click on a block with one or more neighbours of the same colour, blocks with matching color are removed. If the same-color neighbours of the block you clicked have same color neighbours, remove these too. After you removed the blocks, the remaining blocks above the ones removed need to fall down.
Feel free to use whatever libs you need to make it all work.
Given the following simplified 5x5 game grid:
After clicking any of the yellow blocks in the blue highlighted area:
You should end up with a grid that looks like this:
After clicking any of the remaining red blocks you should end up with this:
After clicking any of the remaining yellow blocks you should end up with an empty grid.