Reorder bot method definitions to mimic the order they will be called in.
@@ -2,14 +2,14 @@ import sc2
class CompetitiveBot(sc2.BotAI):
- async def on_step(self, iteration):
- # Populate this function with whatever your bot should do!
- pass
-
async def on_start(self):
print("Game started")
# Do things here before the game starts
+ async def on_step(self, iteration):
+ # Populate this function with whatever your bot should do!
+ pass
+
def on_end(self, result):
print("Game ended.")
# Do things here after the game ends
