Class

BlackJackDealer

BlackJackDealer()

The card object

Constructor

# new BlackJackDealer()

View Source core/src/Games/BlackJack/Dealer.ts, line 10

Extends

Members

Array.<BlackJackCard>

# cardHistory

Get the players card history

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 66

number

# cardSum

The sum of all player cards

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 30

BlackJackCard | undefined

# currentCard

The players current card

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 41

boolean

# hasUsableAce

Return whether the player has a usable ace

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 55

number

# score

The players score

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 21

BlackJackCard

# shownCard

The dealers shown card

View Source core/src/Games/BlackJack/Dealer.ts, line 16

boolean

# sticks

Get whether the player sticks

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 48

Methods

# act() → {void}

Let the dealer act

View Source core/src/Games/BlackJack/Dealer.ts, line 68

void

# addCard(blackJackCard) → {void}

hand the player a card

Parameters:
Name Type Description
blackJackCard BlackJackCard

The card to hand

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 99

void

# callStick() → {void}

call stick

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 91

void

# init() → {void}

Initialize the dealer

Overrides:

View Source core/src/Games/BlackJack/Dealer.ts, line 61

void

# reset() → {void}

Reset the player

Overrides:

View Source core/src/Games/BlackJack/Player.ts, line 82

void

# shownCard() → {BlackJackCard}

The dealers shown card

View Source core/src/Games/BlackJack/Dealer.ts, line 54