Skip to content

Add convenience method to redistribute workers #19

Closed

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.

Activity

  1. Dentosal commented on Jan 30, 2018

    @Dentosal
    Owner

    I just found out there's a assigned_harvesters and ideal_harvesters property on units. I presume these are for the townhall and extractors.

    Correct.

    I reckon when someone manages to make a script to drop into the enemy mineral line, they'd prioritze attacking expansions with more nodes.

    Most likely this, or just the expansion with more workers.

  2. added a commit that references this issue on Jan 31, 2018
    910d2e9
  3. reypader commented on Jan 31, 2018

    @reypader
    ContributorAuthor

    I've updated the PR to incorporate recent changes in BotAI.on_step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions