Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly Implementing PettingZoo #2

Merged
merged 4 commits into from
Mar 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
IT WORKS
  • Loading branch information
NullDefault committed Mar 26, 2022
commit 5ff64020207e8aa8276a7876e2cc9e93bf273669
6 changes: 1 addition & 5 deletions gym_stag_hunt/envs/pettingzoo/escalation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
from pettingzoo.utils import parallel_to_aec


def make_env(raw=False, **kwargs):
return raw_env(**kwargs) if raw else env(**kwargs)


def env(**kwargs):
return default_wrappers(ZooEscalationEnvironment(**kwargs))
return ZooEscalationEnvironment(**kwargs)


def raw_env(**kwargs):
Expand Down
6 changes: 1 addition & 5 deletions gym_stag_hunt/envs/pettingzoo/harvest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
from pettingzoo.utils import parallel_to_aec


def make_env(raw=False, **kwargs):
return raw_env(**kwargs) if raw else env(**kwargs)


def env(**kwargs):
return default_wrappers(ZooHarvestEnvironment(**kwargs))
return ZooHarvestEnvironment(**kwargs)


def raw_env(**kwargs):
Expand Down