Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/luxai_s3/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,6 @@ def spawn_team_units(state: EnvState):
spawn_units_in, lambda: spawn_team_units(state), lambda: state
)

state = self.compute_sensor_masks(state, params)

# Shift objects around in space
# Move the nebula tiles in state.map_features.tile_types up by 1 and to the right by 1
# this is also symmetric nebula tile movement
Expand Down Expand Up @@ -692,6 +690,8 @@ def spawn_team_units(state: EnvState):
energy_nodes=new_energy_nodes,
)

state = self.compute_sensor_masks(state, params)

# Compute relic scores
def team_relic_score(unit_counts_map):
# not all relic nodes are spawned in yet, but relic nodes map ids are precomputed for all to be spawned relic nodes
Expand Down