Original Post
Hi, I'm developing an AI Module for the upcoming Starcraft AI competition, and I'm implementing a module that's capable of placing building. I have a rectangular and discrete grid with several rectangular obstacles, and I'd like to find an optimal placement of another rectangle that's closest to a particular point. That is, I'd like to place a building closest to a particular point that doesn't overlap with other buildings and units. Are there any known algorithms to solve this problem? Thanks in advance Diego