Open meifannao opened 1 year ago
scvs = self.get_units_by_type(obs, units.Terran.SCV) if len(scvs) != 0: scv = random.choice(scvs) return actions.FUNCTIONS.select_point('select', (scv.x, scv.y))
When I run the above code to get the coordinates of the scv, the following error appears randomly:
I know that an array out of bounds occurred, but don't know how to solve it in a reasonable way
Can someone tell me why this problem occurs
When I run the above code to get the coordinates of the scv, the following error appears randomly:
I know that an array out of bounds occurred, but don't know how to solve it in a reasonable way
Can someone tell me why this problem occurs