RouletteStrategyInstance

model.entities.games.RouletteStrategyInstance
case class RouletteStrategyInstance(betAmount: Double, targets: List[Int], condition: () => Boolean) extends GameStrategy

Executable roulette strategy instance.

Implements roulette logic with a 37-number wheel (0-36). Winning pays based on the number of targets bet on: payout = betAmount * 37 / targets.size.

Value parameters

betAmount

the amount being wagered

condition

function determining if the strategy should execute

targets

the list of numbers being bet on

Attributes

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

Members list

Value members

Concrete methods

override def use(history: GameHistory): BetResult

Executes the strategy and returns the betting result.

Executes the strategy and returns the betting result.

Attributes

Returns

BetResult indicating win (Success) or loss (Failure) with monetary amounts

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product