sc2simulator/setup/mapLocations.py
def pickValidMapLoc(pad=30):
    """determine any location which is placeable on the map"""
    global mapDimensions
    x, y = mapDimensions[:2]
    w = x - (pad * 2)
    l = y - (pad * 2)
    return (pad + random.random() * (w),
            pad + random.random() * (l),
            0.0)
determine any location which is placeable on the map
determine any location which is placeable on the map
determine any location which is placeable on the map
def pickValidMapLoc(pad=30):
    global mapDimensions
    x, y = mapDimensions[:2]
    w = x - (pad * 2)
    l = y - (pad * 2)
    return (pad + random.random() * (w),
            pad + random.random() * (l),
            0.0)
def pickValidMapLoc ( pad = 30 ) : global mapDimensions x , y = mapDimensions [ : 2 ] w = x - ( pad * 2 ) l = y - ( pad * 2 ) return ( pad + random . random ( ) * ( w ) , pad + random . random ( ) * ( l ) , 0.0 )
determine any location which is placeable on the map
determine any location which is placeable on the map
"""determine any location which is placeable on the map"""
pad