diff options
| author | historia <[not public]> | 2026-10-03 01:38:58 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 01:38:58 -0400 |
| commit | 0ec8f3692960a064616e630c914058298b22897b (patch) | |
| tree | 2b51327eb66be7df8fdcd7c12cc306ca6fa84891 /internal/game/render_roulette_test.go | |
| parent | 82e571d227feeafd0af4011e701ce26b99c5e3d9 (diff) | |
| download | thehouseoficarus-0ec8f3692960a064616e630c914058298b22897b.tar.gz | |
feat: replaced roulette wheel graphic with line-by-line 'spin'
Diffstat (limited to 'internal/game/render_roulette_test.go')
| -rw-r--r-- | internal/game/render_roulette_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/game/render_roulette_test.go b/internal/game/render_roulette_test.go index 90cee0c..e4fe650 100644 --- a/internal/game/render_roulette_test.go +++ b/internal/game/render_roulette_test.go @@ -25,7 +25,7 @@ func TestRouletteArtModes(t *testing.T) { t.Run(fmt.Sprintf("%s/unicode=%v/double=%v", mode, unicode, double), func(t *testing.T) { wheelOrder := casino.WheelOrder(double) s := &casino.RouletteSnapshot{DoubleZero: double, Wheel: wheelOrder} - for _, phase := range []string{"betting", "playing", "result"} { + for _, phase := range []string{"betting", "result"} { s.Phase = phase s.Pockets = [5]string{"25", "26", "0", "32", "15"} art := renderRouletteSnapshot(s, mode, unicode, 7) @@ -377,7 +377,7 @@ func TestRouletteEventColorsDoNotWrapArt(t *testing.T) { // Use an emphatic blue background to detect whole-message color wrapping. sess.Account = &player.Account{Colors: map[string]string{"casino_action": "0F bg:04 bold"}} g.Casino.Join(1, casino.TableConfig{ID: "r", Game: casino.GameRoulette}, p.Name) - e := casino.Event{RoomID: 1, TableID: "r", Message: "Spinning now", Color: "casino_action", Public: public, Snapshot: &casino.RouletteSnapshot{Phase: "playing", Players: []string{p.Name}}} + e := casino.Event{RoomID: 1, TableID: "r", Message: "Spinning now", Color: "casino_action", Public: public, Snapshot: &casino.RouletteSnapshot{Phase: "playing", SpinFrame: 1, Players: []string{p.Name}}} if !public { e.PrivateTo = p.Name } @@ -575,7 +575,6 @@ func TestRouletteWheelBlackAndSpacing(t *testing.T) { phase string want string }{ - {"playing", renderRouletteWheel(casino.WheelOrder(false), "none", true)}, {"result", renderRouletteResult([5]string{"25", "26", "0", "32", "15"}, "none", true, 7)}, } { s := &casino.RouletteSnapshot{Wheel: casino.WheelOrder(false), Phase: tc.phase, Pockets: [5]string{"25", "26", "0", "32", "15"}} |
