Skip to content

abizerlokhandwala/math-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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