Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 781 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 781 Bytes

Math based Snake Game

A math based snake game, additional to the classical snake game, you have a question based on divisibility of a number, and the answer lies in one of the 3 apples on the map, which is to be consumed by the snake.

Rules

  1. If the snake consumes the right apple, it increments your score, while consuming the wrong one decrements it.
  2. Everytime the snake consumes an apple, it's length increases by one and it's speed increases by a specified unit.
  3. Colliding with the rocky boundaries of the field or the obstruction (rock) in the field leads to an instant loss.
  4. 3 lives are given initially, consuming the wrong apple more than 3 times leads to a loss.

Game can be played here: http://abizerlokhandwala.github.io/math-snake-game/

Enjoy! :D