-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: Restructure env creation * feat: Convert from tuple action to dict action * refactor: Pre-release cleanup * refactor: Further sweeping update workflow, solve mypy problems, update makefile, remove unused files * style: Resolve PR comments
- Loading branch information
Showing
20 changed files
with
272 additions
and
227 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
from gymnasium.envs.registration import register | ||
|
||
from .agents.agent_factory import AgentFactory | ||
from .core.grid import Grid, GridFactory | ||
from .core.replay import Replay | ||
from generals.agents.agent_factory import AgentFactory | ||
from generals.core.grid import Grid, GridFactory | ||
from generals.core.replay import Replay | ||
from generals.envs.pettingzoo_generals import PettingZooGenerals | ||
|
||
__all__ = [ | ||
"AgentFactory", | ||
"GridFactory", | ||
"PettingZooGenerals", | ||
"Grid", | ||
"Replay", | ||
] | ||
|
||
|
||
def _register_generals_envs(): | ||
def _register_gym_generals_envs(): | ||
register( | ||
id="gym-generals-v0", | ||
entry_point="generals.envs.env:gym_generals_v0", | ||
entry_point="generals.envs.gymnasium_generals:GymnasiumGenerals", | ||
) | ||
|
||
register( | ||
id="pz-generals-v0", | ||
entry_point="generals.envs.env:pz_generals_v0", | ||
disable_env_checker=True, | ||
id="gym-generals-normalized-v0", | ||
entry_point="generals.envs.initializers:gyms_generals_normalized_v0", | ||
) | ||
|
||
|
||
_register_generals_envs() | ||
_register_gym_generals_envs() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.