snake.js
// Returns true if there's at least one empty cell on the field.
Returns true if there's at least one empty cell on the field.
Returns true if there ' s at least one empty cell on the field .
function isThereEmptyCell() {
    for (var i = settings.size[0]; i--;)
      for (var j = settings.size[1]; j--;)
        if (!getCell([i, j]).className)
          return true;
  }
function isThereEmptyCell ( ) { for ( var i = settings . size [ 0 ] ; i -- ; ) for ( var j = settings . size [ 1 ] ; j -- ; ) if ( ! getCell ( [ i , j ] ) . className ) return true ; }
Returns true if there's at least one empty cell on the field.
Returns true if there ' s at least one empty cell on the field .