Commit e2f3119 1 parent a63692b commit e2f3119 Copy full SHA for e2f3119
File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,8 @@ SNAKE.Snake = SNAKE.Snake || (function() {
352
352
/**
353
353
* This method is called when it is determined that the snake has eaten some food.
354
354
* @method eatFood
355
+ * @return {bool } Whether a new food was able to spawn (true)
356
+ * or not (false) after the snake eats food.
355
357
*/
356
358
me . eatFood = function ( ) {
357
359
if ( blockPool . length <= growthIncr ) {
@@ -1019,6 +1021,8 @@ SNAKE.Board = SNAKE.Board || (function() {
1019
1021
/**
1020
1022
* This method is called when the snake has eaten some food.
1021
1023
* @method foodEaten
1024
+ * @return {bool } Whether a new food was able to spawn (true)
1025
+ * or not (false) after the snake eats food.
1022
1026
*/
1023
1027
me . foodEaten = function ( ) {
1024
1028
elmLengthPanel . innerHTML = "Length: " + mySnake . snakeLength ;
You can’t perform that action at this time.
0 commit comments