diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-21 08:36:36 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:27 +0200 |
| commit | 4a64688d77096e198a1cca03948acdcf46bb0dfd (patch) | |
| tree | 6545776ec0c53a6d831e53da549f777326788afe /go/game/player.go | |
| parent | 4cfe2d81345bc3807bed3facd9a222dd6e789435 (diff) | |
| download | muhqs-game-4a64688d77096e198a1cca03948acdcf46bb0dfd.tar.gz muhqs-game-4a64688d77096e198a1cca03948acdcf46bb0dfd.zip | |
add comments and action assertion
Diffstat (limited to 'go/game/player.go')
| -rw-r--r-- | go/game/player.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/go/game/player.go b/go/game/player.go index ef88cd81..f7f5be7c 100644 --- a/go/game/player.go +++ b/go/game/player.go @@ -151,6 +151,9 @@ func (p *Player) actionPhase() { if _, ok := a.(*PassPriority); ok { return } + if a == nil { + log.Fatal("Received nil action from ", p.Name) + } p.gameState.declareAction(a) p.gameState.stack.resolve() } |
