C# Class Blackjack.Players.ActionTablePlayer

A helper strategy that just plays according to a look-up table.
Inheritance: IBlackjackPlayer
Show file Open project: tansey/blackjack

Public Methods

Method Description
ActionTablePlayer ( ActionTable table, long handsToPlay ) : System
BuyInsurance ( HandInfo info ) : bool
DoubleDown ( HandInfo info ) : bool
GetBet ( decimal min, decimal max ) : decimal
HandOver ( HandInfo info ) : void
Hit ( HandInfo info ) : bool
PlayAnotherHand ( ) : bool
Reshuffle ( ) : void
Split ( HandInfo info ) : bool
Surrender ( HandInfo info ) : bool

Method Details

ActionTablePlayer() public method

public ActionTablePlayer ( ActionTable table, long handsToPlay ) : System
table ActionTable
handsToPlay long
return System

BuyInsurance() public method

public BuyInsurance ( HandInfo info ) : bool
info HandInfo
return bool

DoubleDown() public method

public DoubleDown ( HandInfo info ) : bool
info HandInfo
return bool

GetBet() public method

public GetBet ( decimal min, decimal max ) : decimal
min decimal
max decimal
return decimal

HandOver() public method

public HandOver ( HandInfo info ) : void
info HandInfo
return void

Hit() public method

public Hit ( HandInfo info ) : bool
info HandInfo
return bool

PlayAnotherHand() public method

public PlayAnotherHand ( ) : bool
return bool

Reshuffle() public method

public Reshuffle ( ) : void
return void

Split() public method

public Split ( HandInfo info ) : bool
info HandInfo
return bool

Surrender() public method

public Surrender ( HandInfo info ) : bool
info HandInfo
return bool