Incidencia #41778

Make AI aware of bombardment

Abrir Fecha: 2021-03-14 06:06 Última actualización: 2022-04-13 20:31

5 - Medium
5 - Medium


Really, AI has no idea that some units sometimes attack in a different way from other ones! Emergency plan: add a subroutine to calculate worth of a bombarded target. If the target is not next to our city (defensive bombardment), attack it only if we have attackers that can put down the stack and only if the bombardment is expected to be useful (I pretend looking for units in 2-tiles radius that can attack the stack in close time, separating them on ally bombarders and ally strikers, and then compare top combat worths and agregated combat worths with calculating the expected bombardment effect with Hoff's Gauss curve approximation). A bit more advanced plan: For bombarders and all units that won't have mp after an attack, consider the safest possible tile to perform the attack. May they even plead for bodyguard? A good plan: AI manages units in 3 sub-phases, first phase units select targets and call for an aid on them, if no aid possible, they strike; second: bombarders soften the best targets; third phase: the rest of non-bombard attacks happen.

Ticket History (3/5 Histories)

2021-03-14 06:06 Updated by: ihnatus
  • New Ticket "Make AI aware of bombardment" created
2021-03-14 20:56 Updated by: kvilhaugsvik

Some hints to anyone working on this. In 3.0 Attack and Bombard are separate actions. 3.1 splits "Suicide Attack" from "Attack". There are plans to split "Attack" even more in relation to Unreachable and unreachableprotects. Other actions, like "Sabotage Unit", can also be useful in this context. When the Freeciv AI makes a choice it typically does so by calculating "want" or - as AI people would say - utility. See utility based AI. I have (barely) started to work on utility based action selection in 3.0. At the moment all it is able to do is to select spy action vs a city.

(Edited, 2021-03-14 20:59 Updated by: kvilhaugsvik)
2021-06-02 23:13 Updated by: cazfi
2021-12-10 08:04 Updated by: cazfi
2022-04-13 20:31 Updated by: cazfi

Clearing the target as it seems that nobody has even plans to work on this for a specific version.

Attachment File List

No attachments


You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Entrar