Skip to content

Commit

Permalink
chore: fix incorrect type for np array
Browse files Browse the repository at this point in the history
  • Loading branch information
anordin95 authored and strakam committed Dec 28, 2024
1 parent e4c6dc1 commit 66d6983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generals/core/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def step(self, actions: dict[str, Action]) -> tuple[dict[str, Observation], dict
winner = self.agents[0] if self.agent_won(self.agents[0]) else self.agents[1]
loser = self.agents[1] if winner == self.agents[0] else self.agents[0]
self.channels.ownership[winner] += self.channels.ownership[loser]
self.channels.ownership[loser] = self.channels.passable * 0
self.channels.ownership[loser] = np.full(self.grid_dims, False)
else:
self._global_game_update()

Expand Down

0 comments on commit 66d6983

Please sign in to comment.