Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 811 Bytes

File metadata and controls

23 lines (16 loc) · 811 Bytes

snake-game

Now available to play at https://snake-game-saurabh.netlify.app/

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.