C# Class GR.Gambling.Blackjack.BonusPairsAgent

Inheritance: IAgent
Exibir arquivo Open project: alexhanh/Botting-Library Class Usage Examples

Protected Properties

Property Type Description
betting_system GR.Gambling.Blackjack.Betting.BettingSystem
current_bet int
ev_cutoff double
game_logger GameLogger
max_bet int
max_splits int
min_bet int
shoe Shoe
shoe_ev double
split_count int

Public Methods

Method Description
Bet ( int roll_before ) : int
BonusPairsAgent ( int min_bet, int max_bet, double ev_cutoff, BettingSystem betting_system ) : System
GetAction ( CardSet seen_cards, Card dealer_upcard, CardSet player_hands, int active_hand, List available_actions ) : ActionType
GetActions ( CardSet seen_cards, Card dealer_upcard, CardSet player_hands, int active_hand, List available_actions ) : List
ResetShoe ( bool forced ) : bool
RoundOver ( CardSet seen_cards, CardSet dealer_hand, CardSet player_hands, long game_id, int roll_after ) : void
TakeInsurance ( CardSet seen_cards ) : bool
ValidateActions ( CardSet active_hand, List available_actions ) : void

Private Methods

Method Description
EvaluateEV ( ) : void
ExpectedMoney ( Hand dealer, Hand player ) : int
GetActionEV ( Shoe tmp_shoe, CardSet active_hand, ActionType action, Card dealer_upcard ) : double
InitializeRound ( ) : void

Method Details

Bet() public method

public Bet ( int roll_before ) : int
roll_before int
return int

BonusPairsAgent() public method

public BonusPairsAgent ( int min_bet, int max_bet, double ev_cutoff, BettingSystem betting_system ) : System
min_bet int
max_bet int
ev_cutoff double
betting_system GR.Gambling.Blackjack.Betting.BettingSystem
return System

GetAction() public method

public GetAction ( CardSet seen_cards, Card dealer_upcard, CardSet player_hands, int active_hand, List available_actions ) : ActionType
seen_cards CardSet
dealer_upcard Card
player_hands CardSet
active_hand int
available_actions List
return ActionType

GetActions() public method

public GetActions ( CardSet seen_cards, Card dealer_upcard, CardSet player_hands, int active_hand, List available_actions ) : List
seen_cards CardSet
dealer_upcard Card
player_hands CardSet
active_hand int
available_actions List
return List

ResetShoe() public method

public ResetShoe ( bool forced ) : bool
forced bool
return bool

RoundOver() public method

public RoundOver ( CardSet seen_cards, CardSet dealer_hand, CardSet player_hands, long game_id, int roll_after ) : void
seen_cards CardSet
dealer_hand CardSet
player_hands CardSet
game_id long
roll_after int
return void

TakeInsurance() public method

public TakeInsurance ( CardSet seen_cards ) : bool
seen_cards CardSet
return bool

ValidateActions() public method

public ValidateActions ( CardSet active_hand, List available_actions ) : void
active_hand CardSet
available_actions List
return void

Property Details

betting_system protected_oe property

protected BettingSystem,GR.Gambling.Blackjack.Betting betting_system
return GR.Gambling.Blackjack.Betting.BettingSystem

current_bet protected_oe property

protected int current_bet
return int

ev_cutoff protected_oe property

protected double ev_cutoff
return double

game_logger protected_oe property

protected GameLogger,GR.Gambling.Blackjack game_logger
return GameLogger

max_bet protected_oe property

protected int max_bet
return int

max_splits protected_oe property

protected int max_splits
return int

min_bet protected_oe property

protected int min_bet
return int

shoe protected_oe property

protected Shoe,GR.Gambling.Blackjack shoe
return Shoe

shoe_ev protected_oe property

protected double shoe_ev
return double

split_count protected_oe property

protected int split_count
return int