C# 클래스 Blackjack.BlackjackGame

BlackjackGame class represents the BlackJack card game entity
상속: ICardGame
파일 보기 프로젝트 열기: tansey/blackjack 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
LogError ( HandInfo info ) : void

메소드 상세

BlackjackGame() 공개 메소드

Creates a new instance of a game of Blackjack.
public BlackjackGame ( BlackjackSettings settings ) : System
settings BlackjackSettings
리턴 System

CanDoubleDown() 공개 메소드

public CanDoubleDown ( PlayerHand hand ) : bool
hand PlayerHand
리턴 bool

CanHit() 공개 메소드

public CanHit ( PlayerHand hand ) : bool
hand PlayerHand
리턴 bool

CanSplit() 공개 메소드

public CanSplit ( PlayerHand hand ) : bool
hand PlayerHand
리턴 bool

CanSurrender() 공개 메소드

public CanSurrender ( PlayerHand hand ) : bool
hand PlayerHand
리턴 bool

DealerMustHit() 공개 메소드

public DealerMustHit ( DealerHand hand ) : bool
hand DealerHand
리턴 bool

Play() 공개 메소드

Plays a game of Blackjack with the collection of players.
public Play ( IEnumerable players ) : void
players IEnumerable
리턴 void