Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 215 Bytes

PLAN.md

File metadata and controls

7 lines (6 loc) · 215 Bytes

Plan for snake game

  • Snake is a Queue in javascript
  • every t ms -> enqueue + dequeue
  • if food item -> increase score and prevent dequeue
  • if snake item -> game over
  • maintain current direction variable