diff options
| author | historia <[not public]> | 2026-10-03 19:46:54 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 19:46:54 -0400 |
| commit | 3a39a020e4449bc4d6f728ef837cffb9f7bd0c56 (patch) | |
| tree | 9ba1cd5f2aef6ef7c54fdf5b02a780604b5af80b /internal/game/cmd_registry.go | |
| parent | c6d4702c0be4d2b37e1d82ff96265c52847c3f9a (diff) | |
| download | thehouseoficarus-3a39a020e4449bc4d6f728ef837cffb9f7bd0c56.tar.gz | |
feat: new casino game: plinko
Diffstat (limited to 'internal/game/cmd_registry.go')
| -rw-r--r-- | internal/game/cmd_registry.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/game/cmd_registry.go b/internal/game/cmd_registry.go index 5b60118..d8cc18f 100644 --- a/internal/game/cmd_registry.go +++ b/internal/game/cmd_registry.go @@ -38,6 +38,12 @@ var commandRegistry = map[string]commandDef{ } g.executeTableAction(s, "deal") }, ClassActive}, + "difficulty": {func(g *Game, s *net.Session, args []string, _ string) { + g.executeTableAction(s, "difficulty "+strings.Join(args, " ")) + }, ClassInstant}, + "balls": {func(g *Game, s *net.Session, args []string, _ string) { + g.executeTableAction(s, "balls "+strings.Join(args, " ")) + }, ClassInstant}, "paytable": {func(g *Game, s *net.Session, _ []string, _ string) { g.executeTableAction(s, "paytable") }, ClassInstant}, "denom": {func(g *Game, s *net.Session, args []string, _ string) { g.executeTableAction(s, "denom "+strings.Join(args, " ")) @@ -249,6 +255,7 @@ var casinoCommonVerbs = []string{"watch", "game", "table", "list", "stop", "rule // command: "sp" is split at a blackjack table, but spin at a Big 6 wheel, // because "split" is not a Big 6 verb and "spin" is not a blackjack verb. var casinoVerbsByGame = map[casino.GameName][]string{ + casino.GamePlinko: {"bet", "rebet", "difficulty", "balls", "paytable"}, casino.GameBlackjack: {"bet", "rebet", "unbet", "hit", "stand", "double", "split", "insurance", "surrender", "decline"}, casino.GameBaccarat: {"bet", "rebet", "unbet"}, casino.GameRoulette: {"bet", "rebet", "unbet"}, |
