Created
October 15, 2019 04:48
-
-
Save fyr91/bcbd6c7ddc3c85a78a51a27ee81c22b5 to your computer and use it in GitHub Desktop.
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
class DZBEnv(gym.Env): | |
metadata = {'render.modes': ['human']} | |
default_settings = { | |
'map_name': "DefeatZerglingsAndBanelings", | |
'players': [sc2_env.Agent(sc2_env.Race.terran), | |
sc2_env.Bot(sc2_env.Race.zerg, sc2_env.Difficulty.hard)], | |
'agent_interface_format': features.AgentInterfaceFormat( | |
action_space=actions.ActionSpace.RAW, | |
use_raw_units=True, | |
raw_resolution=64), | |
'realtime': True | |
} | |
def __init__(self, **kwargs): | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment