codegard1/blackjack

Hand class

Closed this issue · 1 comments

Create a new Class PlayerHand and privately implement evaluating methods

Implement

class PlayerHand {
  constructor ( playerId ) {
    this.id = id
    this.value = { aceAsTen: 0, aceAsEleven: 0 }
    this.cards = [ ]
  }
  evaluate ( ) {
    // determine value based on current cards
    return this.value
  }
}

This was first added in 78ff805