For most of the environments, to check for the configuration, there are mostly an assert statements, which checks whether we can create environment out of specified configuration.
It would be better to have explicit error/exception signal, rather than assert, so that it would be more useful for users. The example change would be
if self.agent_num == 2:
raise WrongAgentNumberException("The agent number for game: penalty, should be 2")
And normally, there should be a test associated with it
For most of the environments, to check for the configuration, there are mostly an
assert
statements, which checks whether we can create environment out of specified configuration.It would be better to have explicit error/exception signal, rather than
assert
, so that it would be more useful for users. The example change would beAnd normally, there should be a test associated with it