bugFreeciv - Bugs: bug #21320, AI do not adjust taxes to avoid...

Show feedback again

bug #21320: AI do not adjust taxes to avoid losing buildings or units due to low funds

Submitted by:  David Fernandez <bardo>
Submitted on:  Mon Dec 2 08:33:06 2013  
Category: aiSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: Operating System: None
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Dec 2 08:56:11 2013, comment #1:

This bug is related to bug #20062, where I placed a savegame for default ruleset and version 2.4beta1.

In that bug, I noticed that AI is coded to maximize the science when it can't avoid the bankrupt by maximizing the taxes.

In this new savegame, the AI set the taxes to 40% (science to 60%), when the max is 90% with this government, and it loses a library due to low funds, when taxes to 70% (science to 30%) would avoid the bankrupt.
The AI neither maximizes the science nor avoids the bankrupt.

If you continue playing the savegame, you will see that AI loses buildings or units almost every turn during the next hundreds of turns. Such behavior makes this AI unplayable for me.

David Fernandez <bardo>
Mon Dec 2 08:33:06 2013, original submission:

In my opinion, this is the most important flaw of the AI since I started testing it with v2.2, and it keeps being a problem in v2.4.1

I use the ruleset civ2civ3 for my tests, where the units are supported with gold instead of shields under certain governments.

I attach this ruleset, and a savegame where you can see the AI (koreans) losing buildings and units almost every turn, while it keeps the taxes around 70% to science, when this AI could avoid the bankrupt by increasing the taxes just a bit.
I'm not sure if the AI is blind to some gold expenses of this ruleset, or if AI finds so important the research that it does not care the bankrupt.

This problem is not so evident with v2.3, but it also happens some times. I have noticed the AI build less buildings and more units in v2.4, maybe that is the reason why AI bankrupts are more often in this version.

To reproduce, load the savegame, toggle control of Koreans to the AI, set timeout, and press end turn.

David Fernandez <bardo>


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #19409:  AI_bankrupt-2.4.1.civ2civ3.ruleset.zip added by bardo (64kB - application/x-zip-compressed)
file #19410:  AI_bankrupt-2.4.1.sav.bz2 added by bardo (101kB - application/x-bzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bardo (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Dec 2 08:33:06 2013bardoAttached File-=>Added AI_bankrupt-2.4.1.civ2civ3.ruleset.zip, #19409
      Attached File-=>Added AI_bankrupt-2.4.1.sav.bz2, #19410
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup