You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add convenience method to redistribute workers #19
We can re-structure the output of BotAI.expansion_locations to become a dictionary of a rounded Point2D with resource groups instead of just a list of rounded Point2D. This, alongside a convenience method to get owned expansions would allow us to potentially get nearby workers, compare them with the amount of resource nodes, and redistribute.
EDIT:
I just found out there's a assigned_harvesters and ideal_harvesters property on units. I presume these are for the townhall and extractors. Instead of counting the nodes, we can use these instead. Though, turning the expansions into dictionaries could still be useful. I reckon when someone manages to make a script to drop into the enemy mineral line, they'd prioritze attacking expansions with more nodes.
Activity
Dentosal commentedon Jan 30, 2018
Correct.
Most likely this, or just the expansion with more workers.
Remove usage of state parameter in sample
reypader commentedon Jan 31, 2018
I've updated the PR to incorporate recent changes in
BotAI.on_step.