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.
Afficher le fichier Open project: tansey/blackjack

Méthodes publiques

Свойство Type Description
ACTION_STRINGS string[]
SHORT_RANK_STRINGS string[]
Table ].ActionTypes[

Méthodes publiques

Méthode 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 méthode

public ActionTable ( ) : System
Résultat System

ActionTable() public méthode

public ActionTable ( ActionTypes table ) : System
table ActionTypes
Résultat System

FromStrategy() public static méthode

public static FromStrategy ( IBlackjackPlayer strategy ) : ActionTable
strategy IBlackjackPlayer
Résultat ActionTable

GetAction() public méthode

public GetAction ( HandInfo info ) : ActionTypes
info HandInfo
Résultat ActionTypes

ToString() public méthode

public ToString ( ) : string
Résultat string

this() public méthode

public this ( int x, int y ) : ActionTypes
x int
y int
Résultat ActionTypes

Property Details

ACTION_STRINGS public_oe static_oe property

public static string[] ACTION_STRINGS
Résultat string[]

SHORT_RANK_STRINGS public_oe static_oe property

public static string[] SHORT_RANK_STRINGS
Résultat string[]

Table public_oe property

public ActionTypes[,] Table
Résultat ].ActionTypes[