DrInfy / sharpy-sc2

Python framework for rapid development of Starcraft 2 AI bots
MIT License
68 stars 28 forks source link

Implement better creepspread #70

Closed BurnySc2 closed 4 years ago

BurnySc2 commented 4 years ago

I tried to mimic creep spread of CreepyBot but this time with the help of path finding.

It does not block expansions with creep tumors. It is similar to breadth first search where it places tumor just closest to positions in need of creep, instead of going towards the enemy base first.

I was unsure if I should use path_finder_terrain or path_finder_ground, but my guess is it might be best to use path_finder_terrain for queens and path_finder_ground for tumors?

It also has issues with tumors when going up ramps or when coming across ground vision blockers.

Sometimes it also seems to have issues planting a tumor because it is blocked by another tumor but self.building_solver.grid.query_area doesn't detect it properly? That's just my guess.

DrInfy commented 4 years ago

I'm merging this to make it easier to test the different versions. Most of the data in self.building_solver.grid aren't currently updated after frame 1.