jordonpeter01 commited on
Commit
f3dbbad
·
verified ·
1 Parent(s): 26671c3

Update main.js

Browse files
Files changed (1) hide show
  1. main.js +1 -2
main.js CHANGED
@@ -1,4 +1,3 @@
1
- // snake.js
2
  let snakeBody = [];
3
  let food;
4
  let score = 0;
@@ -93,6 +92,6 @@ function checkFood() {
93
  }
94
 
95
  function gameOver() {
96
- alert('Game Over! Your score is'+ score);
97
  initGame();
98
  }
 
 
1
  let snakeBody = [];
2
  let food;
3
  let score = 0;
 
92
  }
93
 
94
  function gameOver() {
95
+ alert('Game Over! Your score is '+ score);
96
  initGame();
97
  }