Unvanquished icon indicating copy to clipboard operation
Unvanquished copied to clipboard

implement a `defenseScore` condition

Open bmorel opened this issue 2 years ago • 1 comments

Currently, to make bots change their mind about the fleeing, only the distance to unique (RC/OM) is checked. I think a defenseScore would be more adapted to the task, for several reasons:

  • it would scale with level / mindset (more coward bots would have lower score)
  • it could be impacted with the number of friends (players and buildings) around (this had surprisingly good results with rushScore)

bmorel avatar Aug 28 '22 22:08 bmorel

Parameters to consider:

  • unfinished nearby buildings
  • skill/mindset
  • last known enemy stage (see #2147): if enemy have tyrants and luci, and bot is naked, do not wander outside base
  • if in base and no friend is nearby, defend (no base can defend itself completely)

ghost avatar Sep 04 '22 23:09 ghost