sc2simulator/setup/functions.py
def pickRace(specifiedRace):
    """ensure the selected race for scenario generation is a race, not random"""
    if specifiedRace == c.RANDOM:
        choices = list(c.types.SelectRaces.ALLOWED_TYPES.keys())
        choices.remove(c.RANDOM) # ensure the new race isn't 'random' again
        newRace = random.choice(choices)
        return newRace
    return specifiedRace
ensure the selected race for scenario generation is a race, not random
ensure the selected race for scenario generation is a race, not random
ensure the selected race for scenario generation is a race not random
def pickRace(specifiedRace):
    if specifiedRace == c.RANDOM:
        choices = list(c.types.SelectRaces.ALLOWED_TYPES.keys())
        choices.remove(c.RANDOM) 
        newRace = random.choice(choices)
        return newRace
    return specifiedRace
def pickRace ( specifiedRace ) : if specifiedRace == c . RANDOM : choices = list ( c . types . SelectRaces . ALLOWED_TYPES . keys ( ) ) choices . remove ( c . RANDOM ) newRace = random . choice ( choices ) return newRace return specifiedRace
ensure the selected race for scenario generation is a race, not random
ensure the selected race for scenario generation is a race not random
"""ensure the selected race for scenario generation is a race, not random""" # ensure the new race isn't 'random' again
specifiedRace