Skip to content

BlackjackValue

Defined in: cards/blackjack.ts:6

The value of a blackjack hand, from blackjackValue.

readonly blackjack: boolean

Defined in: cards/blackjack.ts:12

True for a natural: exactly two cards totalling 21.


readonly bust: boolean

Defined in: cards/blackjack.ts:14

True when the total is over 21.


readonly soft: boolean

Defined in: cards/blackjack.ts:10

True when an ace is counted as 11 (the hand can take a card without busting).


readonly total: number

Defined in: cards/blackjack.ts:8

The best total: aces count 11 unless that would bust, then 1.