go2starr / CS-638-BWAPI

Starcraft: Broodwar AI bot
GNU Lesser General Public License v3.0
9 stars 7 forks source link

More effective combat management #10

Open bploeckelman opened 12 years ago

bploeckelman commented 12 years ago

So far if we make it past an early rush, we can usually overwhelm the built-in AI by sheer numbers and sometimes manage to take out the base at their start location. However, since the target selection is hard-coded to the enemy's start location, even after it gets destroyed all our troops congregate there.

The combat manager should keep a list of possible enemy locations and when new enemy structures are added, it should track them locally so we know what's been destroyed and what needs to be targeted yet.

Combat management also needs to be expanded to place troops in squads and manage the squads instead of individual units, then some squads can be marked as 'roving' in order to find enemy expansions.