Hand class
Closed this issue · 1 comments
codegard1 commented
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
}
}