Skip to content

don't have "run_game" file in sc2 lib #317

Description

@SemaSC2

I don't have "run_game" file. It is in all sources and is used in the documentation%0A%0Asc2.-,run_game,-(%0A%20%20%20%20sc2.maps.get), but I can't find how get it anywhere.
My code:

import sc2
from sc2.bot_ai import BotAI
from sc2.player import Bot, Computer

class MyBot(BotAI):
    async def on_step(self, iteration: int):
        print(f"This is my bot in iteration {iteration}!")

sc2.run_game(
    sc2.maps.get("AcropolisLE"),
    [Bot(sc2.Race.Zerg, MyBot()), Computer(sc2.Race.Zerg, sc2.Difficulty.Hard)],
    realtime=False,
)

error:
AttributeError: module 'sc2' has no attribute 'run_game'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions