Click or drag to resize
AiMaybeDoABluff Method
Helper function if you want to bluff (check/call or bet/raise) with a ceratin probability.

Namespace: Potbot.Gameplay.Ais
Assembly: PotBot (in PotBot.exe) Version: 0.9.0.1 (0.9.0.1)
Syntax
protected Decision MaybeDoABluff(
	uint bluffProbPer,
	int raiseProbPer,
	double raisePotTimesMin,
	double raisePotTimesMax,
	Decision actionNoBluff
)

Parameters

bluffProbPer
Type: SystemUInt32
The probabilty to bluff in percent. Numbers higher than 100 are treated as 100.
raiseProbPer
Type: SystemInt32
The probabilty to bet/raise in percent, when the case has occured that there is a bluff. Numbers higher than 100 are treated as 100. In all other cases you call/check.
raisePotTimesMin
Type: SystemDouble
In case bluff and raise occured this is the minimum factor of the pot size to bet/raise. Since MakeRaiseDecision(Double, Double) method is used, the resulting decision will be valid.
raisePotTimesMax
Type: SystemDouble
In case bluff and raise occured this is the maximum factor of the pot size to bet/raise. Since MakeRaiseDecision(Double, Double) method is used, the resulting decision will be valid.
actionNoBluff
Type: Potbot.Gameplay.DecisionsDecision
In case no bluff occured, this decision is returned. The probailty for that is 100-bluffProbPer.

Return Value

Type: Decision
A random decision, based on the parameters.
See Also