model.entities.customers.FlatBetting
See theFlatBetting companion object
Implements a Flat Betting strategy. The bet amount remains constant regardless of previous game outcomes.
Type parameters
-
A
-
The entity type using this strategy.
Value parameters
-
betAmount
-
The fixed amount to bet.
-
option
-
Game-specific options for the bet.
Attributes
-
Companion
-
object
-
Graph
-
-
Supertypes
-
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
Returns the type of this betting strategy.
Returns the type of this betting strategy.
Attributes
-
Returns
-
The BetStratType for this strategy.
-
Definition Classes
-
Generates a game-specific bet for Flat Betting. Checks requirements and creates the appropriate Bet type based on the game.
Generates a game-specific bet for Flat Betting. Checks requirements and creates the appropriate Bet type based on the game.
Value parameters
-
ctx
-
The customer entity's context.
Attributes
-
Returns
-
A Bet object.
-
Throws
-
MatchError
if the customer state is not Playing or game type is unknown.
-
Definition Classes
-
For Flat Betting, the strategy's state does not change after a game round. Returns the current instance.
For Flat Betting, the strategy's state does not change after a game round. Returns the current instance.
Value parameters
-
ctx
-
The customer entity's context (unused in FlatBetting).
-
result
-
The outcome of the game round (unused in FlatBetting).
Attributes
-
Returns
-
This FlatBetting instance.
-
Definition Classes
-
Checks preconditions before placing a bet. Throws a require error if the bet amount exceeds bankroll or if the customer is not in a Playing state.
Checks preconditions before placing a bet. Throws a require error if the bet amount exceeds bankroll or if the customer is not in a Playing state.
Value parameters
-
ctx
-
The customer entity's context.
Attributes
-
Inherited from:
-
BettingStrategy
Attributes
-
Inherited from:
-
Product
Attributes
-
Inherited from:
-
Product