SlotStrategyInstance

model.entities.games.SlotStrategyInstance
case class SlotStrategyInstance(betAmount: Double, condition: () => Boolean) extends GameStrategy

Executable slot machine strategy instance.

Implements slot machine logic where winning requires all 5 generated numbers to be identical. Winning pays 10x the bet amount.

Value parameters

betAmount

the amount being wagered

condition

function determining if the strategy should execute

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