- Snake
- Food
- At the start, the snake will have a total length of 2.
- The snake will grow as it ate the food. 1 food = 1 length
- Show the total score of the user
- Game over when the snake touches the boundary.
- Game over when the snake eats itself.
- Use ReactJs for building the game
- Write test cases using Jest+React testing library
- I'll suggest to using Mobx for state management but the developer can choose which library they want to use.
- Use functional component instead of class components.