Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add convenience method to redistribute workers #19

@reypader

Description

@reypader

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions