jsettlers / settlers-remake

A Remake of "The Settlers III" for Windows, Linux, Mac and Android
http://www.settlers-android-clone.com
MIT License
355 stars 101 forks source link

AI should priorities border defence towers to secure border faster #519

Open andreas-eberle opened 7 years ago

andreas-eberle commented 7 years ago

Advantage:

The border is safe faster.

Disadvantage:

In some cases the economy is more important than the border. If the border is far away I prefer to produce more soldiers to kill my enemy anyway

Possible compromis:

enable priority if buildings are some kind of near by
DerKrawallkeks commented 7 years ago

To decide which towers to protect, the AI would need a priority value for all buildings inside its area. This priority value would be determined by the economical situation: For example the number of a certain kind of building inside the tower area compared to the overall number of this kind of building, again compared to the number of all buildings with a certain factor depending on the average needed number. This last comparison gives a rough estimate for "are there enough of this kind".

A priority mechanism could be made really accurate and human-like if needed. (Taking in consideration the number of soldiers in certain areas and distances from the tower etc)