Blackjack Decision Maker
Public Member Functions | List of all members
StrategyEngine Class Reference

Class implementing the optimum Blackjack strategy. More...

#include <StrategyEngine.h>

Inheritance diagram for StrategyEngine:
Collaboration diagram for StrategyEngine:

Public Member Functions

 StrategyEngine ()
 Construct a new Strategy Engine:: Strategy Engine object. More...
 
decisions getchoice (int dealercard, std::vector< int > playercards)
 Method to implement the Blackjack optimum strategy and compute the next optimum play. More...
 
void nextCallback (AcePlaysUtils &callbackData)
 Implement the nextCallback virtual method to pass information down the pipeline. More...
 

Detailed Description

Class implementing the optimum Blackjack strategy.

Constructor & Destructor Documentation

◆ StrategyEngine()

StrategyEngine::StrategyEngine ( )

Construct a new Strategy Engine:: Strategy Engine object.

Member Function Documentation

◆ getchoice()

decisions StrategyEngine::getchoice ( int  dealercard,
std::vector< int >  playercards 
)

Method to implement the Blackjack optimum strategy and compute the next optimum play.

Parameters
dealercardthe dealer's card as an integer
playercardsvector of the player's hand as integers
Returns
decisions the computed optimum play

◆ nextCallback()

void StrategyEngine::nextCallback ( AcePlaysUtils callbackData)
virtual

Implement the nextCallback virtual method to pass information down the pipeline.

Parameters
callbackDataan AcePlaysUtils callback object

Implements CallbackLinker.


The documentation for this class was generated from the following files: