Skip to content

Instantly share code, notes, and snippets.

@fyr91
Created October 15, 2019 04:48
Show Gist options
  • Save fyr91/bcbd6c7ddc3c85a78a51a27ee81c22b5 to your computer and use it in GitHub Desktop.
Save fyr91/bcbd6c7ddc3c85a78a51a27ee81c22b5 to your computer and use it in GitHub Desktop.
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