You need Login/Signup to run/submit the code.
In this challenge, the candidate needs to create a color spotter game where you have to identify the cell that is different from the rest.
First, you start out with 4x4 grid, and click on the one where the shade looks slightly different.
Each time you pick the correct cell, a new set of NxN grid is shown and you must once again pick the cell that stands out to you as different.
- Grid should be NxN and should starts from 4x4.
- In case of right answer, increment score by 1 and increase the size of grid by 1.
- In case of wrong answer reset score and grid to default and shake the grid for 800ms.
Please start the timer before starting and finish your solution within 90 mins. Share your solution with us on Twitter or LinkedIn.
This question is part of DevKode Coding Challenges. Find the original challenge here