Open
Description
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'
Metadata
Metadata
Assignees
Labels
No labels