aboutsummaryrefslogtreecommitdiff
path: root/internal/game/casino_commands_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-03 02:16:00 -0400
committerhistoria <[not public]>2026-10-03 02:16:00 -0400
commit6232d41e5639f9c38e47b2bb65266e343ca26e8f (patch)
treead0c1676838a6c7e162d3a5c055f914016dac803 /internal/game/casino_commands_test.go
parentefccf58741ae43d9e891c6b743b146982b344ccf (diff)
downloadthehouseoficarus-6232d41e5639f9c38e47b2bb65266e343ca26e8f.tar.gz
feat: add casino_hints option and standardize casino command syntax
Diffstat (limited to 'internal/game/casino_commands_test.go')
-rw-r--r--internal/game/casino_commands_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/casino_commands_test.go b/internal/game/casino_commands_test.go
index cd558ea..6b41ecc 100644
--- a/internal/game/casino_commands_test.go
+++ b/internal/game/casino_commands_test.go
@@ -12,13 +12,13 @@ import (
func TestCasinoCommandsWrapBeforeSessionWithoutLosingIndent(t *testing.T) {
commands := []casino.MenuCommand{
- {Command: "bet <amount> on <target>", Desc: "Place bets until the dice roll; list gives targets"},
+ {Command: "bet N on BET", Desc: "Place bets until the dice roll; list gives targets"},
{Command: "roll / autoroll / stop", Desc: "Shoot / repeat on your turn / return to manual play"},
{Command: "unbet", Desc: "Remove all your bets"},
{Command: "table", Desc: "View the felt"},
{Command: "insurance", Desc: "Buy insurance; a deliberately long description which requires a hanging continuation line"},
{Command: "decline", Desc: "Continue without insurance (also the timeout default)"},
- {Command: "bet <amount> on player/banker/tie/player_pair/banker_pair", Desc: "One wager per round; 'on' is optional"},
+ {Command: "bet N on player/banker/tie/player_pair/banker_pair", Desc: "One wager per round; 'on' is optional"},
{Command: "option casino_display compact", Desc: "Compact action hints (detailed for full command menus)"},
{Command: "spin", Desc: "Spin using your current wager"},
{Command: "autospin", Desc: "Start automatic betting"},
@@ -58,7 +58,7 @@ func TestCasinoCommandsHangingIndentAndShortDescription(t *testing.T) {
sess := &net.Session{Player: player.New("a")}
g := &Game{}
commands := []casino.MenuCommand{
- {Command: "bet <amount> on <target>", Desc: "Place a wager; targets: list"},
+ {Command: "bet N on BET", Desc: "Place a wager; targets: list"},
{Command: "table", Desc: "View the felt"},
}
text := plainRoulette(g.casinoMenuCommands(sess, commands))
@@ -81,7 +81,7 @@ func TestCasinoCommandsHangingIndentAndShortDescription(t *testing.T) {
}
func TestCasinoCompactHintsUseOnlyAvailableCommands(t *testing.T) {
p := player.New("a")
- p.Options = map[string]any{"casino_display": "compact"}
+ p.Options = map[string]any{"casino_display": "compact", "casino_hints": "on"}
p.Credits = 10
sess := &net.Session{Player: p}
g := &Game{}