From ced77d7c89129da6ba4001ab8e3dad265aa41396 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 9 Oct 2026 17:05:54 -0400 Subject: feat: new casino game: coin flip --- internal/game/casino_ux.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'internal/game/casino_ux.go') 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. -- cgit v1.2.3