tomjn / Shard

A reprogrammable AI framework for the Spring Engine
https://shard.tomjn.com
17 stars 13 forks source link

WIP Placement handler #144

Closed tomjn closed 6 years ago

tomjn commented 6 years ago

Implements a building placement algorithm:

Some features still need fully testing, some are partially implemented at the time of writing

tomjn commented 6 years ago

Current testing showed that units tend to stop doing things, though no debugging has been done to determine why just yet. Probably because not enough positions are being checked per game frame. Until the timing code is finished it's doing a set number of iterations rather than using time budgets as intended, so I was conservative, maybe too conservative about it

pandaro commented 6 years ago

interesting

tomjn commented 6 years ago

Recent tests and modifications added basic spacing support, the algorithm is now competent enough to be used as a replacement

Additionally, changes were made to allow this widget to be used to debug it:

https://gist.github.com/tomjn/01ada053704d523502729ebdc23299a1

tomjn commented 6 years ago

I would also note that the latest commits made changes that aren't compatible with native Shard. I'm fine with this