Add opponent_id to bot class for sc2ai ladder
@@ -27,6 +27,11 @@ class BotAI(object):
EXPANSION_GAP_THRESHOLD = 15
+ def __init__(self):
+ # Specific opponent bot ID used in sc2ai ladder games http://sc2ai.net/
+ # The bot ID will stay the same each game so your bot can "adapt" to the opponent
+ self.opponent_id: int = None
+
@property
def enemy_race(self) -> Race:
self.enemy_id = 3 - self.player_id
