calculateValue() {
    // Returns total value of hand
    return this.hand.reduce(
      (accumulator, currentValue) =>
        accumulator + this.getCardValue(currentValue.weight),
      0
    );
  }
/**
   * Gets the total value of the hand
   * @returns {int} The sum of all the values of the cards on hand
   */
Gets the total value of the hand
@returns {int} The sum of all the values of the cards on hand
Gets the total value of the hand @returns { int } The sum of all the values of the cards on hand
calculateValue() {
    return this.hand.reduce(
      (accumulator, currentValue) =>
        accumulator + this.getCardValue(currentValue.weight),
      0
    );
  }
calculateValue ( ) { return this . hand . reduce ( ( accumulator , currentValue ) => accumulator + this . getCardValue ( currentValue . weight ) , 0 ) ; }
Gets the total value of the hand
 @returns {int} The sum of all the values of the cards on hand
Gets the total value of the hand @returns { int } The sum of all the values of the cards on hand
// Returns total value of hand