C# Class Blackjack.ActionTable

A look-up table for a Blackjack strategy. This is useful in simulating strategies that do not rely on the count of the deck. Given a hand value and dealer card, it will simply look up the appropriate action to take.
Datei anzeigen Open project: tansey/blackjack

Public Properties

Property Type Description
ACTION_STRINGS string[]
SHORT_RANK_STRINGS string[]
Table ].ActionTypes[

Public Methods

Method Description
ActionTable ( ) : System
ActionTable ( ActionTypes table ) : System
FromStrategy ( IBlackjackPlayer strategy ) : ActionTable
GetAction ( HandInfo info ) : ActionTypes
ToString ( ) : string
this ( int x, int y ) : ActionTypes

Method Details

ActionTable() public method

public ActionTable ( ) : System
return System

ActionTable() public method

public ActionTable ( ActionTypes table ) : System
table ActionTypes
return System

FromStrategy() public static method

public static FromStrategy ( IBlackjackPlayer strategy ) : ActionTable
strategy IBlackjackPlayer
return ActionTable

GetAction() public method

public GetAction ( HandInfo info ) : ActionTypes
info HandInfo
return ActionTypes

ToString() public method

public ToString ( ) : string
return string

this() public method

public this ( int x, int y ) : ActionTypes
x int
y int
return ActionTypes

Property Details

ACTION_STRINGS public_oe static_oe property

public static string[] ACTION_STRINGS
return string[]

SHORT_RANK_STRINGS public_oe static_oe property

public static string[] SHORT_RANK_STRINGS
return string[]

Table public_oe property

public ActionTypes[,] Table
return ].ActionTypes[