Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization III > Civ3-General > AI Stupidity - not quite a bug, but really weak
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
16.Sep: 7 NEW FILES
15.Sep: TRIAL + NO SLEEP = ONE GAME
13.Sep: PATCH THE PREVIOUSLY UNPATCHABLE

bottom of page
   - CIV3 CONQUESTS $29.99 - CIV3 from $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
ducki is offline ducki
King

Sep 2002
time: 23:33
  Old Post 11-01-2004 20:31
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
AI Stupidity - not quite a bug, but really weak Support Apolyton, buy GURPS/ Alpha Centauri

We all know about part of this one.
The AI should never irrigate Bonus Grassland under Despotism. They lose worker turns AND production. Soren fixed this in PtW, and it's mentioned in the bug thread, IIRC, so maybe this will get refixed.

The other part - well, parts, really, just astound me.
1) A sole citizen working a 1-food tile. Unless he's in serious hock on a gpt deal to another AI, this is double-plus-ungood. Even then, surely he could find a single gpt somewhere else, no? Switching to one of the roaded, riverside tiles will pick up two of those gold, and had the BG tiles been mined, he would gain 1 food and maintain shields.
2) Growth to size 2 in 5 turns paired with a settler build complete in 5 turns. This one I've seen in several other games, where the AI is going to finish a settler and have to wait for +10 food to build up for pop-growth. No wonder he's growing so slowly.

(I would have put this in the bugs thread, but it's not really a bug, per se, just funky AI behavior.)

Attachment: stupidai.jpg
This has been downloaded 148 time(s).

alexman is offline alexman
Emperor
Hunt Valley, MD
Jan 1970
time: 00:33
  Old Post 11-01-2004 21:01 Visit alexman's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Avatar Enlargement: We've got the solution

The reason behind the above behavior is that the AI usually wants to maximize shield/commerce output and keep at least a +2 food surplus. That's what it's doing in the example above.

Given the AI happiness problems, growth at just +2 food is not a bad idea, although in this case (producing a Settler), it sure seems silly!

ducki is offline ducki
King

Sep 2002
time: 23:33
  Old Post 12-01-2004 20:30
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Inflate your Upload Space

I agree that +2 food is normally more than the AI can handle, happiness-wise, but he's wasting 10 turns here. Also, working a mined BG instead of forested silks, he could grow in 7 instead of 10 since he's Ag. But that's getting rather obscure. The main point is, he'll be doing nothing but collecting food and wasting shields for at least 10 turns after he grows in 5. If he was working on anything besides a settler, I wouldn't even have posted this.

And he cuould get the same shields and one less commerce if Soren's mining vs. irrigating fix from PtW was pt back in. It seems minor, but when the player can crank out a settler every 4 turns(on this map), an AI wasting 10 turns(and while trying to build the pyramids in another of his cities) is a serious setback for him.

Dominae is offline Dominae
Emperor

Jan 2002
time: 00:33
  Old Post 12-01-2004 20:40
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Help yourself to an AD-FREE life

The algorithm that selects the Laborer assignments for a city and the algorithm that select the build items do not communicate. Us humans have the advantage of tailoring our tile output to fit our strategy (production, research, or otherwise), while the AI simply plays out what's best in the average case every time.


Dominae

Mad Bomber is offline Mad Bomber
King
Columbus, Ohio
Nov 2002
time: 00:33
  Old Post 12-01-2004 21:45
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Dominae
The algorithm that selects the Laborer assignments for a city and the algorithm that select the build items do not communicate. Us humans have the advantage of tailoring our tile output to fit our strategy (production, research, or otherwise), while the AI simply plays out what's best in the average case every time.


Dominae


But the algorithm for build tasks should check to see that food would be available before building settlers and workers. Look at this, the AI will lose at least 5 turns of production to produce the settler simply waiting for the city to grow to size 3.

steven8r is offline steven8r
Prince
of Central Texas
May 2002
time: 23:33
  Old Post 12-01-2004 23:20
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Suffering from ads?

Perhaps Montezuma should read the, "Ducki Does C3C at Emperor" thread on Apolyton. He could then learn all about 'pumps' and be able to give those pesky Japanese to his NothWest a real hurtin'.

As it is (even w/o the Oracle), I forsee a probability of Samurai in Tenochtitlan and Teotihuacan in the next age.

Steven

Last edited by steven8r on 12-01-2004 at 23:26

ducki is offline ducki
King

Sep 2002
time: 23:33
  Old Post 12-01-2004 23:36
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Remove this text

quote:
simply waiting for the city to grow to size 3.

MB - Actually, he's going to lose 10 turns if I've calculated correctly. The town is currently size 1 and the settler will finish shield-wise the same turn the town hits size 2. He's running +2fpt, and let's assume he'll keep it at +2fpt once he hits size 2 in 5 turns - which leaves him 10 turns away from size 3 when the settler can finally complete.

Doing some quick mental math, it seems like the AI is trading 40 gold for 40 shields with the "maximize commerce and production" orders - he gets 40 extra gold from start to finish and wastes 40 shields(not to mention precious time). Is my math correct?
If so, is 40 gold worth 40 shields?


Edit: An AI that can 4-turn pump? Eek! Scary! I'd be happy if they mined Bonus Grassland under despotism and didn't spin their wheels on settlers when short on pop units like this. No wonder I'm covering him like kudzu, and yes, he's going to learn not to like the Samurai as soon as Chivalry comes online. Until them, I'll let him live and perhaps build me a wonder and some roads.

dexters is offline dexters
King
Vancouver, Canada
Nov 2001
time: 05:33
  Old Post 14-01-2004 19:31 Visit dexters's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Enter the AD-FREE zone

Interesting discussion.

I think a limitaiton here though is that if these algorithms must communicate, they must do so for every AI city every turn. Performance could take a hit.

A solution might be a staggered system where only say 10% of the cities do this and it rolls through the list, effectively giving AI cities a 'review' of its food/shield allocation every few turns.

Alternatively, I was thinking a new set of strategies should be programmed into the AI so that the AI can shoot for a shield city, or a food city and stick with it, based on some calculation of the terrain features when a city is first plopped down. But im not sure how feasable this is.

ducki is offline ducki
King

Sep 2002
time: 23:33
  Old Post 14-01-2004 20:18
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Avatar Enlargement: We've got the solution

I don't think there would be that much of a CPU hit if the build queue algorithm did something like
if(city_size < 2 && build_queue = 'Settler') {
ChangeBuildQueueFromSettler();
}

I'm not looking for complex decisionmaking that would enable a settler pump. I'm looking for the AI to say "am I wasting shields/turns? how many?" and if it's above a given threshold, change the queue.

There doesn't need to be two-way communication.
Let the governor continue to assign tiles like he does, just make him check the estimated build time against the estimated time-to-growth-to-build-pop-cost +1.

No MM, no tile-assignment mods.
Just minimize wasted turns and wasted shields beyond a given threshold. Even I will waste a turn or two on occasion, but never more than 2.

At a time when growth is so important, 10 (wasted) turns is an eternity even without a human using a pump.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:33.
Apolyton Time is 00:33.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0321 seconds (87.15% PHP - 12.85% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net