dsl
model.entities.games.dsl
object dsl
Domain Specific Language (DSL) for game strategy creation.
Provides a fluent, readable interface for constructing game strategies using a natural language-like syntax. The DSL abstracts the direct factory method calls and enables more expressive code when building betting strategies.
Example usage:
val strategy = use(SlotStrategy).bet(10.0).when(true)
val rouletteStrategy = use(RouletteStrategy).bet(5.0).on(List(1, 2, 3)).when(true)
val blackjackStrategy = use(BlackJackStrategy).bet(20.0).accept(18).when(true)
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
dsl.type
Members list
In this article