Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 745 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 745 Bytes

snake-game

Design the elements
  • Snake
  • Food

Features & Requirements

  • 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.

Tech Stack

  • 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.