RouletteStrategyBuilder

model.entities.games.RouletteStrategyBuilder
case class RouletteStrategyBuilder(betAmount: Option[Double], targets: Option[List[Int]])

Builder for constructing roulette betting strategies.

Uses the builder pattern to configure bet amounts, target numbers, and conditions before creating the final strategy instance.

Value parameters

betAmount

optional bet amount (defaults to 0.5 if not specified)

targets

optional list of target numbers (defaults to List(0) if not specified)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def bet(amount: Double): RouletteStrategyBuilder

Sets the betting amount for the strategy.

Sets the betting amount for the strategy.

Value parameters

amount

the monetary amount to bet (must be positive)

Attributes

Returns

updated builder with the specified bet amount

Throws
IllegalArgumentException

if amount is not positive

def on(targets: List[Int]): RouletteStrategyBuilder

Sets the target numbers to bet on.

Sets the target numbers to bet on.

Value parameters

targets

list of roulette numbers to bet on (must be non-empty)

Attributes

Returns

updated builder with the specified targets

Throws
IllegalArgumentException

if targets list is empty

def when(cond: => Boolean): RouletteStrategyInstance

Sets the execution condition and creates the final strategy instance.

Sets the execution condition and creates the final strategy instance.

Value parameters

cond

the condition under which the strategy should execute

Attributes

Returns

configured RouletteStrategyInstance ready for execution

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product