Closed benblack769 closed 2 years ago
So apparently here be dragons.
As I understand, this is a total remake of the black death wrapper, yes? (basically meaning that whatever diff is irrelevant, and it should be analyzed in isolation from the previous version)
I can't actually test it right now, but from a cursory glance over the code, here are some potential pitfalls:
env.possible_agents
, but then the wrapper doesn't use that. Maybe it should be used in place of self.env.agents
in L23? This would support agents who die and who have yet to be spawned, if at all.Are there any specific reasons why you're suspicious of this code?
@RedTachyon This is the problem: #133 .
Overall, this rewrite should be very similar to the old environment, but without the bug. But I don't want to waste time pawing through that old code.
I've spent way too much time looking at that old code, and I don't want people to spend time reasoning about crazy edge cases there, especially if it doesn't work, especially if all the use cases for this wrapper are parallelizable environments anyways, hence the rewrite.
I agree that the previous implementation was... tricky. But this seems to be pretty straight forward since we can skip all of the AEC stuff
Yeah, that was with the previous implementation. There is no particular problem I know about the current implementation, other than the obvious history of problems.
Resolves #133