BlackJackStrategyInstance
model.entities.games.BlackJackStrategyInstance
case class BlackJackStrategyInstance(betAmount: Double, minimumValue: Int, condition: () => Boolean) extends GameStrategy
Executable blackjack strategy instance.
Implements simplified blackjack logic where both dealer and player draw cards until reaching their respective thresholds. Player wins if dealer busts (>21) or if player has higher value ≤21. Blackjack (21) pays 3x, other wins pay 2x.
Value parameters
- betAmount
-
the amount being wagered
- condition
-
function determining if the strategy should execute
- minimumValue
-
the minimum hand value the player will accept
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GameStrategyclass Objecttrait Matchableclass Any
Members list
In this article