Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 281 forks source link

fix one off expansion positions #281

Closed yanntm closed 6 years ago

yanntm commented 6 years ago

On some maps, expansions were placed one off by the current algorithm. The problem is that the cog of the cluster might be off center wrt to the position we want. The sum of distances is safe, it will force to stick to the right zone.