JonathanSafer / screeps

Screeps AI
MIT License
25 stars 7 forks source link

How to score rooms for expansion #164

Open JonathanSafer opened 4 years ago

JonathanSafer commented 4 years ago

In order to keep track of which rooms have been scored and which ones have not, every room will receive a numerical score. Rooms that are incompatible with expansion (controllerless or can't fit template) should receive a -1. All other rooms should be scored from 0 to 100.

Factors to be taken into account in no particular order. number of sources mineral (Botarena only?)(probably only care if it's catalyst) proximity of 'best' template placement to controller proximity of 'best' template placement to sources number of highway rooms in sphere of influence (MMO only)(closer highway rooms are more valuable than farther ones) distance from nearest friendly room (maybe this should only be calculated when deciding to expand since it is subject to change)(MMO only) number of swamps under road portions of template?

JonathanSafer commented 3 years ago

number of highway rooms in proximity still needed

JonathanSafer commented 3 years ago

with remote mining coming up, this should be factored into the score