diff options
| author | historia <[not public]> | 2026-10-10 04:08:09 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-10 04:08:09 -0400 |
| commit | 9fb1f9010526100e12dd1ab1b0ca98401bb6ed75 (patch) | |
| tree | 4a128211bfb0dd429bbb559a591d6c4be25c7757 /internal/casino/table.go | |
| parent | ced77d7c89129da6ba4001ab8e3dad265aa41396 (diff) | |
| download | thehouseoficarus-9fb1f9010526100e12dd1ab1b0ca98401bb6ed75.tar.gz | |
Diffstat (limited to 'internal/casino/table.go')
| -rw-r--r-- | internal/casino/table.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/casino/table.go b/internal/casino/table.go index 4ab4e3a..f0d5b3d 100644 --- a/internal/casino/table.go +++ b/internal/casino/table.go @@ -108,10 +108,13 @@ func (t *Table) action(name, action string) []Event { return t.game.action(name, func (t *Table) rebet(name string) (string, int) { return t.game.rebet(name) } // RebetAll repeats every remembered wager for a game that keeps more than one -// (currently baccarat's side bets plus main bet). It returns nil for games -// whose bare "bet" is a single-wager repeat. +// (a spread of roulette, Big 6, Crazy Time or baccarat wagers). It returns nil +// for games whose bare "bet" is a single-wager repeat, so the caller falls +// back to the singular rebet path. func (t *Table) RebetAll(name string, wallet Wallet) []Event { - if b, ok := t.game.(*baccaratTable); ok { + if b, ok := t.game.(interface { + rebetAll(string, Wallet) []Event + }); ok { return b.rebetAll(name, wallet) } return nil |
