aboutsummaryrefslogtreecommitdiff
path: root/internal/game/casino_ux.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-09 17:05:54 -0400
committerhistoria <[not public]>2026-10-09 17:05:54 -0400
commitced77d7c89129da6ba4001ab8e3dad265aa41396 (patch)
tree2acfd429e5b4a83121565bf5f1bbc122228e9d8a /internal/game/casino_ux.go
parent6321c0a6b63061ac57a982c9ec5f93c1f731ae65 (diff)
downloadthehouseoficarus-ced77d7c89129da6ba4001ab8e3dad265aa41396.tar.gz
feat: new casino game: coin flip
Diffstat (limited to 'internal/game/casino_ux.go')
-rw-r--r--internal/game/casino_ux.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/game/casino_ux.go b/internal/game/casino_ux.go
index 7eb10dd..bdc3add 100644
--- a/internal/game/casino_ux.go
+++ b/internal/game/casino_ux.go
@@ -68,6 +68,8 @@ func casinoTableAliases(cfg casino.TableConfig) []string {
switch cfg.Game {
case casino.GameCashHunt:
names = append(names, "cash hunt", "cashhunt", "cash-hunt")
+ case casino.GameCoinFlip:
+ names = append(names, "coin flip", "coinflip", "coin-flip", "coin")
case casino.GamePachinko:
names = append(names, "pachinko")
case casino.GameBigSix:
@@ -174,6 +176,12 @@ func (g *Game) executeTableStatus(sess *net.Session, args []string, _ string) {
}
return
}
+ // Coin Flip has no felt or board: the spin and the coin are the whole
+ // game, so the table command answers with a one-liner instead of nothing.
+ if t.Config.Game == casino.GameCoinFlip {
+ sess.WriteLine("Coin Flip has no table. Use bet N to spin and flip the coin.")
+ return
+ }
// The table command shows only the table: the live board for roulette,
// craps and video poker, or the printed felt for blackjack, baccarat and
// Pai Gow. No balance, seat state, command menu, or reminder rides along.