There was an error while loading. Please reload this page.
1 parent ac6d0b5 commit 92a001bCopy full SHA for 92a001b
multiagent/environment.py
@@ -127,10 +127,11 @@ def _get_obs(self, agent):
127
return self.observation_callback(agent, self.world)
128
129
# get dones for a particular agent
130
+ # unused right now -- agents are allowed to go beyond the viewing screen
131
def _get_done(self, agent):
132
if self.done_callback is None:
133
return False
- return self.observation_callback(agent, self.world)
134
+ return self.done_callback(agent, self.world)
135
136
# get reward for a particular agent
137
def _get_reward(self, agent):
0 commit comments