From abb5a31c9e86f0d9ad6c74c073e74dcd42b66772 Mon Sep 17 00:00:00 2001 From: NishhanttGautam <41345353+NishhanttGautam@users.noreply.github.com> Date: Mon, 22 Jul 2019 12:51:30 +0530 Subject: [PATCH] Update snakes.js --- snakes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snakes.js b/snakes.js index 9c0ef02..da023ba 100644 --- a/snakes.js +++ b/snakes.js @@ -39,7 +39,7 @@ function init(){ //var score=5; //assuming snake is moving right //insertion at head; - // nextHeadX=headX+1; + // this.cells.pop(); //this.cells.unshift({x:nextHeadX,y:headY}); @@ -165,4 +165,4 @@ function getRandomFood(){ init(); //call game loop after t time var z=setInterval(gameloop,130); -//gameloop(); \ No newline at end of file +//gameloop();