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 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