Mirroar / hivemind

Fully automated open source AI core for the game screeps. Also usable as an opponent on private servers.
MIT License
29 stars 10 forks source link

Add setting and notification for room planner layout changes #47

Open Mirroar opened 3 years ago

Mirroar commented 3 years ago

There should be a setting for re-planning existing rooms automatically or not. Having all your rooms deconstructing and constructing several structures after a code update isn't something everybody might want, but it's fine for a private server bot enemy.

Ideally, when disabled, we show a message to the user and allow manually triggering the re-planning:

Room layouts need to be updated for room E10S20. Run hivemind.rePlanRoom('E10S20') when you're ready to do so.

It would be even cooler if there was a list of changes that are made, for example:

  • The last piece of road on the path to the controller will be removed.
  • Room center is recalculated. Every structure apart from nukers will possibly be rebuilt elsewhere. Sorry about that.