Skip to content

Commit

Permalink
all tests pass AAAAA
Browse files Browse the repository at this point in the history
  • Loading branch information
umutucak committed Oct 24, 2023
1 parent 53d2e39 commit 873e5c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions momadm_benchmarks/envs/crazyrl/catch/catch.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ def _compute_terminated(self):
for agent in self.agents:
terminated[agent] = False

# print('beginning:', type(terminated["agent_0"]))

for agent in self.agents:
# collision between two drones
for other_agent in self.agents:
Expand All @@ -275,6 +277,8 @@ def _compute_terminated(self):
terminated[other_agent] = True
self.agents = []

terminated[agent] = bool(terminated[agent])

return terminated

@override
Expand Down
2 changes: 2 additions & 0 deletions momadm_benchmarks/envs/crazyrl/escort/escort.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def _compute_terminated(self):
terminated[other_agent] = True
self.agents = []

terminated[agent] = bool(terminated[agent])

return terminated

@override
Expand Down
2 changes: 2 additions & 0 deletions momadm_benchmarks/envs/crazyrl/surround/surround.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def _compute_terminated(self):
terminated[other_agent] = True
self.agents = []

terminated[agent] = bool(terminated[agent])

return terminated

@override
Expand Down

0 comments on commit 873e5c0

Please sign in to comment.