From 3a39a020e4449bc4d6f728ef837cffb9f7bd0c56 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 3 Oct 2026 19:46:54 -0400 Subject: feat: new casino game: plinko --- internal/game/cmd_registry.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/game/cmd_registry.go') 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"}, -- cgit v1.2.3