Ai Class |
Namespace: Potbot.Gameplay.Ais
The Ai type exposes the following members.
Name | Description | |
---|---|---|
AiStateObject |
Ai developer's object to save data between rounds.
| |
CurrentHandState |
Returns the CurrentHandState object, with various methods/properties with information about the current hand.
| |
HandValue | Returns Cactus Kev's number, which represents the strength of the hand. 1 is the best possible 5 card hand (Royal Flush), 7462 the worst (High Card 7). Before the flop this value = -1 HandValue 6186 - 7462: High Card hands HandValue 3326 - 6185: One pair hands HandValue 2468 - 3325: Two pairs hands HandValue 1610 - 2467: Three of a kind hands HandValue 1600 - 1609: Straight hands HandValue 323 - 1599: Flush hands HandValue 167 - 322: Full House hands HandValue 11 - 166: Four of a Kind (Poker) hands HandValue 2 - 10: Straight Flush hands HandValue = 1: Royal Flush HandValue -1: Not a 5 card hand (preflop) | |
HoleRank |
Returns the number of the "value" of your pocketcards, where 0 is the best and 168 is the worst possible.
| |
Name |
Override this property to give your AI a name.
| |
OverruleAllowed |
Gets Or sets a value, indicating whether PotBot may overrule decisions from AIs of which he thinks they aren't good.
Right now there is only one rule implemented, in which a FOLD is overruled to CHECK if possible.
| |
PlayersManager |
Returns the Playersmanager object, with various methods/properties.
| |
Pocketcard |
Returns the pocketcard you specify, that you got dealt.
| |
PotsManager |
Returns the PotsManager object, with various methods/properties.
|
Name | Description | |
---|---|---|
AddDebugLine |
Adds information to the Debug window.
| |
CheckOrCall |
Use this method to call or check. This checks if you can check (owe nothing) or calls if you owe money to the pot(s).
| |
CheckOrFold |
Use this method to check or fold. This checks if you can check (owe nothing) or folds if you owe money to the pot(s).
| |
DoFlushDrawCheck |
This method determines whether you are holding a flush draw and if, detailed information about that draw in a FlushDrawCheckResult object.
The definition of a flush draw is: Together, there are 4 or 5 cards of the same suit in your pockets and/or the board. Notice that a ready flush with 5 cards
of the same suit will also be considered as a flush draw and return a proper FlushDrawCheckResult reference.
If you do not have a flush draw, you will get a FlushDrawCheckResult reference, with all properties set to -1 in it.
This method should only be called on the flop or on the turn, else you will receive a FlushDrawCheckResult reference, with all properties set to -1 in it.
| |
DoPairCheck |
Examines and returns information about the 1 pair hand that you have.
| |
DoStraightDrawCheck |
This method determines whether you are holding a staight draw and if, detailed information about that draw in a StraightDrawCheckResult object.
The definition of a staight draw is: If there is exactly 1 card missing to make a straight AND if i have at least 1 of the 4 draw cards in my pockets.
A finished straight will not be considered a straight draw. If you call the method having a finished straight you will get a StraightDrawCheckResult
reference, with all properties set to 0 in it. Also, if you do not have a staight draw, you will get a StraightDrawCheckResult reference, with all properties
set to 0 in it.
This method should only be called on the flop or on the turn, else you will receive a StraightDrawCheckResult reference, with all properties set to 0 in it.
| |
Fold |
Use this method if you want to fold.
| |
GetNrOvercardsOnBridge |
Returns the number of cards on the bridge, which have a higher face value than the higher one of my pocket cards.
If there is no card on the bridge yet (preflop) 0 is returned.
| |
GetRandomInBetween |
Little helper method, that returns a random number between start and ending (>= start and <= ending) | |
HandHasEnded |
This method will be called after the hand has ended and the winners are paid. You can here e.g. see if your play was successful regarding your winnnings or
do any other thing that you like.
| |
HasGoodSuitedConnectors |
Determines whether your pockets are "good" suited connectors. "Good" means: Pockets that have a higher chance to win than average pocketcards.
E.g. If you have 32s your chances to win in a showdown are lower than they would be holding random pocket cards.
Also note that AJs for example has a higher chance to win than KQs if you play headsup, but the other way round if you play against 9 opponents.
Consequently, if you call this method holding AJs headsup, you will get a different value ("2") than calling it against 9 opponents ("3").
| |
HasPair |
Determines whether if your pocketcards are a pair.
| |
IsBridgePaired |
Helper function, which determines whether there is at least 1 pair on the bridge.
| |
IsBridgeSuited |
Helper function, which determines whether all cards on the bridge are of the same suit.
| |
MakeAllInDecision |
Use this method if you want to go allin. This might be a bet/raise or a call.
| |
MakeFlopDecision |
Override this member and return your decision on the flop.
| |
MakePreflopDecision |
Override this member and return your decision preflop.
| |
MakeRaiseDecision |
Helper function to return a correct decision if you want to bet/raise with a certain variance.
| |
MakeRiverDecision |
Override this member and return your decision on the river.
| |
MakeTurnDecision |
Override this member and return your decision on the turn.
| |
MaybeDoABluff |
Helper function if you want to bluff (check/call or bet/raise) with a ceratin probability.
| |
NrMostBridgeColor |
Helper function to calculate the maximum number of cards on the bridge, who have the same suit.
| |
Pocketcards |
Returns the 2 pocketcards you got dealt.
| |
Raise |
Use this method if you want to bet/raise.
| |
ResultPercent |
Returns the percentages (0-100) for you to win, tie or lose the current hand, if there would be a showndown immediately.
The results are based on simulation preflop (not 100% precise) and on calculation otherwise (100% precise).
| |
ThreeOfAKindCheck |
Returns how many of the 3 cards that make the three of a kind your player has in his hand.
If method is called without your player having a three of a kind hand, -1 is returned. This is also true if yor player e.g. has a four of kind hand.
| |
TwoPairsCheck |
Examines and returns information about the 2 pairs hand that you have.
Examines and returns information about the 2 pairs hand that you have.
|