@soundstep/soma
Version:
Soma is a javascript framework created to build scalable and maintainable applications.
27 lines (20 loc) • 474 B
JavaScript
(function(snake) {
'use strict';
var Cell = function() {
this.index = null;
this.x = null;
this.y = null;
this.col = null;
this.row = null;
this.direction = null;
};
Cell.prototype.toString = function() {
return '[Position] x: ' + this.x +
', y: ' + this.y +
', index: ' + this.index +
', col: ' + this.col +
', row: ' + this.row +
', direction: ' + this.direction;
};
snake.Cell = Cell;
})(window.snake = window.snake || {});