C# Class Blackjack.BlackjackGame

BlackjackGame class represents the BlackJack card game entity
Inheritance: ICardGame
Afficher le fichier Open project: tansey/blackjack Class Usage Examples

Méthodes publiques

Méthode Description
BlackjackGame ( BlackjackSettings settings ) : System

Creates a new instance of a game of Blackjack.

CanDoubleDown ( PlayerHand hand ) : bool
CanHit ( PlayerHand hand ) : bool
CanSplit ( PlayerHand hand ) : bool
CanSurrender ( PlayerHand hand ) : bool
DealerMustHit ( DealerHand hand ) : bool
Play ( IEnumerable players ) : void

Plays a game of Blackjack with the collection of players.

Private Methods

Méthode Description
LogError ( HandInfo info ) : void

Method Details

BlackjackGame() public méthode

Creates a new instance of a game of Blackjack.
public BlackjackGame ( BlackjackSettings settings ) : System
settings BlackjackSettings
Résultat System

CanDoubleDown() public méthode

public CanDoubleDown ( PlayerHand hand ) : bool
hand PlayerHand
Résultat bool

CanHit() public méthode

public CanHit ( PlayerHand hand ) : bool
hand PlayerHand
Résultat bool

CanSplit() public méthode

public CanSplit ( PlayerHand hand ) : bool
hand PlayerHand
Résultat bool

CanSurrender() public méthode

public CanSurrender ( PlayerHand hand ) : bool
hand PlayerHand
Résultat bool

DealerMustHit() public méthode

public DealerMustHit ( DealerHand hand ) : bool
hand DealerHand
Résultat bool

Play() public méthode

Plays a game of Blackjack with the collection of players.
public Play ( IEnumerable players ) : void
players IEnumerable
Résultat void