diff options
| author | historia <[not public]> | 2026-10-01 15:47:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 15:47:17 -0400 |
| commit | c94728c929045f7c1bdf0166df152d944e5f99bc (patch) | |
| tree | 3d677caf166da36cd12ae200cc4c5d7a789d5c8f /internal/casino/table.go | |
| parent | 1082f3336085c15992ca83d5553c0ba52208d70a (diff) | |
| download | thehouseoficarus-c94728c929045f7c1bdf0166df152d944e5f99bc.tar.gz | |
feat: better casino game look output, more concise table instructions
Diffstat (limited to 'internal/casino/table.go')
| -rw-r--r-- | internal/casino/table.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/casino/table.go b/internal/casino/table.go index 719bed3..88ffc62 100644 --- a/internal/casino/table.go +++ b/internal/casino/table.go @@ -21,6 +21,10 @@ type tableGame interface { idle() bool status(name string) []Event overview() string + // seats and state expose the live occupancy and lifecycle phase for the + // look command's table-details view. They are read-only. + seats() []string + state() string // wagers is the game's live list of bets the player could make right // now (the "list" command's data; empty when nothing is worth naming, // which also suppresses the "list" hint). hints is the full live hint @@ -118,6 +122,12 @@ func (t *Table) idle() bool { return t.game.idle() } func (t *Table) Status(name string) []Event { return t.game.status(name) } func (t *Table) Overview() string { return t.game.overview() } +// Seats lists the seated players in seat order for the look command. +func (t *Table) Seats() []string { return t.game.seats() } + +// State is the table's live lifecycle phase for the look command. +func (t *Table) State() string { return t.game.state() } + // RulesText is this table's full rule text (the "table rules" wording). func (t *Table) RulesText() string { return rulesTextOnTable(t.Config) } |
