forkserf / forkserf

a continuation of "FreeSerf"

Home Page:https://forkserf.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI logic - need to alter behavior when no more expansion by new-huts is possible

tlongstretch opened this issue · comments

The only thing left is to attack. Need to decide on...

  • should we wait for unprocessed resources (gold, really) to be processed before attacking?
  • should we wait for knights to be promoted before attacking?

and make attacks more specific to required resouces if they aren't already

added this logic for attacking, but it will need to be more complex. AI will make desperate attack to gain resources, but it should stop once it gains those resouces and take time to harvest them. This means it MUST do some kind of check to see if it has unharvested or unprocessed resources before making desperate attacks

done, needs testing

seems to work well. pays attention to unprocessed resources but ignores unpromoted knights