isValidPoint() {
      for (var x=0; x<validPoints.length; x++) {
        if (this.rollValue() === validPoints[x]) {
          return this.rollValue();
        }
      }
      return 0;
    }
/*
     * Determine if the roll of the dice is a valid point.
     * @return [Number] The value of the roll if it is valid, or 0 if it is not.
     */
Determine if the roll of the dice is a valid point.
@return [Number] The value of the roll if it is valid, or 0 if it is not.
Determine if the roll of the dice is a valid point . @return [ Number ] The value of the roll if it is valid or 0 if it is not .
isValidPoint() {
      for (var x=0; x<validPoints.length; x++) {
        if (this.rollValue() === validPoints[x]) {
          return this.rollValue();
        }
      }
      return 0;
    }
isValidPoint ( ) { for ( var x = 0 ; x < validPoints . length ; x ++ ) { if ( this . rollValue ( ) === validPoints [ x ] ) { return this . rollValue ( ) ; } } return 0 ; }
Determine if the roll of the dice is a valid point.
Determine if the roll of the dice is a valid point .