matrix-snake
Play Snake Game in a Javascript Matrix (browser-ready)!
$ npm install --save snake-matrix
or
$ bower install --save snake-matrix
Example
var SnakeGame = ;// creates an object that will notify our Snake// Game whenever we want to change the direction// of the snake.var cbObj = ; // here we prepare the CbObj to receive, in a// given interval of 1.5s, random directions.; // Prepare the initial gave (5x5 matrix)var game = SnakeGame; // Let the game render itself in an interval of// .5s;