diff --git a/engine/game.go b/engine/game.go index ecb7357..8240011 100644 --- a/engine/game.go +++ b/engine/game.go @@ -326,6 +326,15 @@ func (gs *GameState) GetVisibleState(playerID int) *VisibleState { } } + // Include zone bounds if enabled + if gs.Config.ZoneEnabled { + vs.Zone = &ZoneBounds{ + Center: gs.ZoneCenter, + Radius: gs.ZoneRadius, + Active: gs.ZoneActive, + } + } + return vs } diff --git a/engine/types.go b/engine/types.go index a59b74c..ad128c0 100644 --- a/engine/types.go +++ b/engine/types.go @@ -291,6 +291,7 @@ type VisibleState struct { Cores []VisibleCore `json:"cores"` Walls []Position `json:"walls"` Dead []VisibleBot `json:"dead"` + Zone *ZoneBounds `json:"zone,omitempty"` // Current zone state (nil if zone disabled) } // VisibleBot represents a bot visible to a player.