From a17b7d9f4db676baedd7d580adc9c26cf9f2d541 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 19 Jul 2025 19:05:37 -0400 Subject: panic if we try to resolve an unknown card type --- go/game/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/game/state.go b/go/game/state.go index e16233a5..1c773618 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -705,7 +705,7 @@ func (s *LocalState) resolvePlay(a *PlayAction) { case CardTypes.Spell: c.Impl.onPlay(a) default: - log.Printf("Resolving unhandled card type: %s\n", c.Type.String()) + log.Panicf("Resolving unhandled card type: %s\n", c.Type.String()) } if c.Type == CardTypes.Spell { -- cgit v1.2.3