Thread Tools
Old May 16, 2002, 14:34   #1
BillChin
Warlord
 
Local Time: 16:48
Local Date: October 31, 2010
Join Date: Feb 2002
Posts: 163
Civ III AI - This explains everything (at least to me)
Snipped from:
http://apolyton.net/misc/column/204_sidsoren.shtml

AI
-----------------------------
Soren was in charge of the AI and it took "7 or 8 months of his time to write it about half writing and then half testing." He'd set the AI to play against itself for ten minutes, and then rewrite as necc. He also tried playing against it himself, of course.

----
>>>

With this methodology, I can see how and why the AI is what it is. With only 4 months to do coding, I believe it is a minor miracle that the AI is as good as it is and a testament to the brilliance of the programmer. (Good in the sense that it can beat 20% of players on a level playing field.) Sure the AI does stupid things, but with one person coding and one person testing, many loopholes will never be found. Also there is the phenomenon that fixing one stupid behavior often leads to another, even more stupid behavior.

I am sure there was a lot more nipping and tucking after the primary engine was written, but the die was cast. It seems like it is too bad that an experienced gamer was not in the early AI development loop for testing and for ideas. Mr. Johnson may be a brilliant programmer, but I doubt he is in the top 20% of Civ III players or any 4x type game. (More likely the top 40% or top 50%.) Having a top flight Civ II player involved early, probably would have been a tremendous resource for Mr. Johnson.

My compliments to Mr. Johnson for coding the Civ III AI with what I see as limited time and resources.

Cheers.
BillChin is offline  
Old May 16, 2002, 19:12   #2
Coracle
Prince
 
Coracle's Avatar
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Feb 2002
Posts: 915
That stupid AI
". . . only four months to do coding". With just one person doing it.

And no doubt a deadline to get it marketed in time for the Holday buying season.

RUSHED TO MARkET AND INCOMPLETE.

The AI is INADEQUATE, TOO.
Coracle is offline  
Old May 16, 2002, 19:15   #3
Jon Shafer
PtWDG RoleplayPtWDG Gathering StormPtWDG Neu DemogypticaInterSite Democracy Game: Apolyton TeamPtWDG LegolandPtWDG Vox ControliPtWDG Glory of WarPtWDG2 SunshineApolyton UniversityC3CDG Desolation RowApolytoners Hall of FameCivilization IV CreatorsC4DG SarantiumApolyCon 06 ParticipantsPtWDG Lux Invicta
Firaxis Games Programmer/Designer
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Apr 2002
Location: Maryland
Posts: 9,567
Before another whine-fest, ala "civ 3 sucks" starts up again, I point you all to this, originally posted in the very top thread...

#151 HOW AND WHY DO BAD GAMES GET MADE AND PUBLISHED
http://apolyton.net/misc/column/151_bad.shtml
by Ex-Activisioner David "Pyaray" Ray

While the game has certanily been dumbed down so that it will appeal to a more mass audience, most of the bugs and deficiencies of the game aren't due to Firaxis.
Jon Shafer is offline  
Old May 16, 2002, 19:39   #4
Akka
Prince
 
Akka's Avatar
 
Local Time: 01:48
Local Date: November 1, 2010
Join Date: Nov 2001
Location: In front of my computer.
Posts: 512
Only four months for coding, alone, the AI of a game like Civ3 is in my opinion a proof of competence for Soren.
I don't like the design decision over the AI, but the result is very good, and it's even better when I think he did it alone.
Just thinking about the work it is to write 70 000 lines of code concerning an AI and find the bugs in it makes me dizzy

Congrats, Soren
__________________
Science without conscience is the doom of the soul.
Akka is offline  
Old May 16, 2002, 20:20   #5
Theseus
PtWDG Gathering StormApolyton UniversityApolytoners Hall of FameBtS Tri-LeagueC4DG Gathering StormApolyCon 06 Participants
Emperor
 
Theseus's Avatar
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Apr 2002
Location: The warmonger formerly known as rpodos. Gathering Storm!
Posts: 8,907
A couple of years ago I participated in starting a dotcom for commercial real estate.

We ended up with about 140,000 lines of code for the site.

We paid $15+ million to a third-party developer to do this, as well as funding our own tech staff (and it sucked, btw). Also btw, it wasn't my call... I won;t pay more than 100 gps for gems, being the cheapskate and warmongerer that I am.

Admittedly, those were crazy days, but whatever Firaxis did, with Soren and any other resources, I am impressed.
__________________
The greatest delight for man is to inflict defeat on his enemies, to drive them before him, to see those dear to them with their faces bathed in tears, to bestride their horses, to crush in his arms their daughters and wives.

Duas uncias in puncta mortalis est.
Theseus is offline  
Old May 16, 2002, 20:26   #6
Cyclotron
Never Ending StoriesThe Courts of Candle'Bre
King
 
Cyclotron's Avatar
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Jan 2001
Location: Cyclo-who?
Posts: 2,995
Quote:
Originally posted by Coracle
The AI is INADEQUATE, TOO.
It's inadequately stupid? As in, not as stupid as the Civ2 AI? Do you like it that way?

Or do you mean inadequate in comparison to a human player, in which case your naivite boggles the mind. Do you really think any mere game company has an AI that matches a human? Dream on, my friend...

And, if you want to play with humans, there's an XP with your name on it coming out soon.

So what do you have to complain about?

Just once, Coracle, I challenge you to answer and have a discussion with me. Can you back up your complaining?
__________________
Lime roots and treachery!
"Eventually you're left with a bunch of unmemorable posters like Cyclotron, pretending that they actually know anything about who they're debating pointless crap with." - Drake Tungsten
Cyclotron is offline  
Old May 16, 2002, 20:51   #7
ACooper
Prince
 
ACooper's Avatar
 
Local Time: 18:48
Local Date: October 31, 2010
Join Date: Apr 1999
Location: In a dark and scary hole!
Posts: 728
Quote:
Originally posted by cyclotron7


It's inadequately stupid? As in, not as stupid as the Civ2 AI? Do you like it that way?

Or do you mean inadequate in comparison to a human player, in which case your naivite boggles the mind. Do you really think any mere game company has an AI that matches a human? Dream on, my friend...

And, if you want to play with humans, there's an XP with your name on it coming out soon.

So what do you have to complain about?

Just once, Coracle, I challenge you to answer and have a discussion with me. Can you back up your complaining?
Give it up. Coracle won't answer. He know he stands on shaky ground at best.

On topic: The time frame for coding this AI is incredible. I'm sure that it was 7-8 months of long hours and bad take out food. I think Soren should be aplauded for the work he has done. Civ 3 has the best AI of any other game in the genre.

Good job Soren. Thank you for all your efforts.
__________________
Sorry....nothing to say!
ACooper is offline  
Old May 16, 2002, 21:11   #8
Jon Shafer
PtWDG RoleplayPtWDG Gathering StormPtWDG Neu DemogypticaInterSite Democracy Game: Apolyton TeamPtWDG LegolandPtWDG Vox ControliPtWDG Glory of WarPtWDG2 SunshineApolyton UniversityC3CDG Desolation RowApolytoners Hall of FameCivilization IV CreatorsC4DG SarantiumApolyCon 06 ParticipantsPtWDG Lux Invicta
Firaxis Games Programmer/Designer
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Apr 2002
Location: Maryland
Posts: 9,567
Quote:
Originally posted by ACooper
Good job Soren. Thank you for all your efforts.
Hear hear.

Make sure they, uh, "reward" you with the AI for Civ IV too. Just make sure they give you twice as long next time.
Jon Shafer is offline  
Old May 16, 2002, 21:21   #9
Tuberski
 
Tuberski's Avatar
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Feb 2002
Location: ACK!! PPHHHHTTBBBTTTT!!!
Posts: 7,022
Quote:
Originally posted by Trip

Hear hear.

Make sure they, uh, "reward" you with the AI for Civ IV too. Just make sure they give you twice as long next time.
And maybe somebody to just playtest the AI that he writes.


P.S. Stop trying to challenge Coracle everyone. He won't expound on his statements. And, for sure, he won't play MP. Because he can't cheat.
__________________
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault. Bigfoot is blurry, and that's extra scary to me. There's a large out of focus monster roaming the countryside. Look out, he's fuzzy, let's get out of here."
Tuberski is offline  
Old May 16, 2002, 21:28   #10
Dominae
BtS Tri-LeaguePtWDG Gathering StormC4DG Gathering StormApolytoners Hall of Fame
Emperor
 
Dominae's Avatar
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Jan 2002
Posts: 7,017
Re: Civ III AI - This explains everything (at least to me)
Quote:
Originally posted by BillChin
It seems like it is too bad that an experienced gamer was not in the early AI development loop for testing and for ideas. Mr. Johnson may be a brilliant programmer, but I doubt he is in the top 20% of Civ III players or any 4x type game. (More likely the top 40% or top 50%.) Having a top flight Civ II player involved early, probably would have been a tremendous resource for Mr. Johnson.
I see no evidence to support this. To create an AI that plays the game as well as it does requires intimate knowledge of all things Civ. I find it hard to imagine that Soren isn't in the top 1% of all Civ players, if you want to look at it that way. People who "write the book" on any topic are invariably experts.


Dominae
Dominae is offline  
Old May 16, 2002, 21:38   #11
Switch
Prince
 
Switch's Avatar
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Apr 2002
Location: Waterloo, Ontario
Posts: 687
Quote:
Originally posted by cyclotron7
Or do you mean inadequate in comparison to a human player, in which case your naivite boggles the mind. Do you really think any mere game company has an AI that matches a human? Dream on, my friend...
Any mere game company? Try any company, ever. Does anyone think anyone'll develop AI that even comes close to human behaviour? IMO, no. Our brains are just too complex, and then there's the added problem of dynamic personalities, forgetfullnes, moral fibres, and the soul. No, it's just too much for our small in comprehension yet high in complexity brains
__________________
I AM.CHRISTIAN
Switch is offline  
Old May 17, 2002, 00:42   #12
Theseus
PtWDG Gathering StormApolyton UniversityApolytoners Hall of FameBtS Tri-LeagueC4DG Gathering StormApolyCon 06 Participants
Emperor
 
Theseus's Avatar
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Apr 2002
Location: The warmonger formerly known as rpodos. Gathering Storm!
Posts: 8,907
1. SwitchMo0: Within 20 years, bank on it.

2. As I am sure is true for most here, I have been a gameplayer all of my life. My feeling is that people can admire or complain all that they want, but the proof is in MP, whether that's over the Internet or across a table. My standing response to Coracle, and others like him / her who argue without true engagement and dialectic: Let's talk when I have 100 Tanks on your doorstep, or vice versa. After all, warfare is a tool of politics.
__________________
The greatest delight for man is to inflict defeat on his enemies, to drive them before him, to see those dear to them with their faces bathed in tears, to bestride their horses, to crush in his arms their daughters and wives.

Duas uncias in puncta mortalis est.
Theseus is offline  
Old May 17, 2002, 00:55   #13
Dominae
BtS Tri-LeaguePtWDG Gathering StormC4DG Gathering StormApolytoners Hall of Fame
Emperor
 
Dominae's Avatar
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Jan 2002
Posts: 7,017
Well said Theseus. MP will cull the weak.


Dominae
Dominae is offline  
Old May 17, 2002, 01:33   #14
Capt Dizle
ACDG3 Gaians
King
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Sep 1999
Posts: 1,657
cyclotron7,

Not to answer for anyone else but here is my take on it. AI has never being developed to the point that it should be the centerpiece of a computer game. Chess maybe, but not something like Civ.

After playing a few games of Civ3 I pretty well have an idea of what the AI could do. At this point, I was looking for something else to keep my interest and could not find it. I will admit that Civ3 AI is much better than SMAC AI. But it does not matter.

Lets suppose you have two unintelligent people. One has an IQ of 54. Moron. Other is 90. Sub-average. If you are looking for a quick wit both are lacking, only one is more obvious than the other. At the end of the day it does not matter.

With SMAC, there were tons of things in the game to be interested in. Features. Add in MP and they really shine.

Irregardless of how technically proficient Soren is he was doomed on day one because of the decision to showcase the AI. AI is the weakest part of computer gaming and when you decide to showcase a weakness you have already made a fatal blunder.

Someday maybe AI will be capable of learning and evolving. This is not that day.

Besides, take your average game of Civ with one human and seven AI. If the AI was equal to the human, the human would only win one in eight tries. If that were the case very few would play.

Make it fun first, deep second, and a challenge if you have spare development time cause all of your bugs are fixed.
Capt Dizle is offline  
Old May 17, 2002, 01:36   #15
Capt Dizle
ACDG3 Gaians
King
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Sep 1999
Posts: 1,657
BTW, if any of you want to make statements about me and MP, you better just check me out. I can play. I can compete at the highest level.
I am just not sold that Civ3 MP is up to my standards.



jt
Capt Dizle is offline  
Old May 17, 2002, 08:57   #16
Theseus
PtWDG Gathering StormApolyton UniversityApolytoners Hall of FameBtS Tri-LeagueC4DG Gathering StormApolyCon 06 Participants
Emperor
 
Theseus's Avatar
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Apr 2002
Location: The warmonger formerly known as rpodos. Gathering Storm!
Posts: 8,907
I look forward to kicking your butt in MP, jt... that is, on the days when you don;t kick mine!!
__________________
The greatest delight for man is to inflict defeat on his enemies, to drive them before him, to see those dear to them with their faces bathed in tears, to bestride their horses, to crush in his arms their daughters and wives.

Duas uncias in puncta mortalis est.
Theseus is offline  
Old May 17, 2002, 10:31   #17
Jon Shafer
PtWDG RoleplayPtWDG Gathering StormPtWDG Neu DemogypticaInterSite Democracy Game: Apolyton TeamPtWDG LegolandPtWDG Vox ControliPtWDG Glory of WarPtWDG2 SunshineApolyton UniversityC3CDG Desolation RowApolytoners Hall of FameCivilization IV CreatorsC4DG SarantiumApolyCon 06 ParticipantsPtWDG Lux Invicta
Firaxis Games Programmer/Designer
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Apr 2002
Location: Maryland
Posts: 9,567
We can all just kick each other around in a big circle!

In six months...
Jon Shafer is offline  
Old May 17, 2002, 11:38   #18
Captain
King
 
Captain's Avatar
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: May 2001
Location: by Divine Right
Posts: 1,014
good job Soren, given the time and financial constraints. the ai is good, and downright impressive sometimes. too bad they didn't give you more help and more time. I'm curious as to what you'd have liked to do, if you weren't working in an 8 month time frame.

what would you change, or have added, to civ 3 if you were free to do so and had unlimited resources? what's soren's wish-list?
__________________
Proud Citizen of the Civ 3 Demo Game
Retired Justice of the Court, Staff member of the War Academy, Staff member of the Machiavelli Institute
Join the Civ 3 Demo Game $Mini-Game! ~ Play the Civ 3 Demo Game $Mini-Game!
Voici mon secret. Il est très simple: on ne voit bien qu'avec le coeur. L'essentiel est invisible pour les yeux.
Captain is offline  
Old May 17, 2002, 11:55   #19
Grumbold
Emperor
 
Grumbold's Avatar
 
Local Time: 01:48
Local Date: November 1, 2010
Join Date: Mar 2000
Location: London, UK
Posts: 3,732
I'm impressed with the domestic expansion AI. The complaints here have all focussed around players being "forced" to rush colonise because the AI is too effective if you adopt any other strategy. Of course it is helped by its omniscence in knowing that there is available city space the other side of your empire but still, a very competent job.

The combat AI still has a lot of holes in it so I can't say the same there. Bait and trap with workers will catch the enemy every time. Artillery tactics are improving but still woefully poor.

All in all, its the best out-of-the-box AI from a random map TBS to date. Unfortunately the game lacks the extra functionality that has allowed dedicated fans to turn CtP1/2 AI into rampaging beasts capable of avoiding - or even using against you - all the players favourite tricks.
__________________
To doubt everything or to believe everything are two equally convenient solutions; both dispense with the necessity of reflection. H.Poincare
Grumbold is offline  
Old May 17, 2002, 12:11   #20
Adm.Naismith
King
 
Adm.Naismith's Avatar
 
Local Time: 01:48
Local Date: November 1, 2010
Join Date: Oct 1999
Location: Milano - Italy
Posts: 1,674
Quote:
Originally posted by Trip
We can all just kick each other around in a big circle!
And that will test players' Natural Intellingence?
Would you then tell that players who lose often where "rushed out"? How bad parents: who is the publisher to blame?

And about frequent winners?
"nine months of developement all done from a woman, after some starting input and general design by a man. Quite an accomplishment. Take this Mr Soren!"

Just kidding
Adm.Naismith is offline  
Old May 17, 2002, 12:19   #21
Adm.Naismith
King
 
Adm.Naismith's Avatar
 
Local Time: 01:48
Local Date: November 1, 2010
Join Date: Oct 1999
Location: Milano - Italy
Posts: 1,674
Quote:
Originally posted by Captain
I'm curious as to what you'd have liked to do, if you weren't working in an 8 month time frame.

what would you change, or have added, to civ 3 if you were free to do so and had unlimited resources? what's soren's wish-list?
Good question. I'm afraid Soren can't answer it at his pleasure, because some concept can be in development for XP, too, so not disclosure agreement can be a pain in the neck here.

So, softening the attention from Civ III to TBS genre, where do you think AI development for TBS can gain more, Mr. Soren? Where results are more dependant from new algorithm, more computational resources, different approach, more link between game rules design and AI development (to mask limits and build more on stronger points)?.
__________________
"We are reducing all the complexity of billions of people over 6000 years into a Civ box. Let me say: That's not only a PkZip effort....it's a real 'picture to Jpeg heavy loss in translation' kind of thing."
- Admiral Naismith
Adm.Naismith is offline  
Old May 17, 2002, 12:33   #22
BillChin
Warlord
 
Local Time: 16:48
Local Date: October 31, 2010
Join Date: Feb 2002
Posts: 163
Re: Re: Civ III AI - This explains everything (at least to me)
Quote:
Originally posted by Dominae
I see no evidence to support this. To create an AI that plays the game as well as it does requires intimate knowledge of all things Civ. I find it hard to imagine that Soren isn't in the top 1% of all Civ players, if you want to look at it that way. People who "write the book" on any topic are invariably experts.
Dominae
My evidence is hearsay. However, I do remember Mr. Johnson himself saying he is an average Civ III player on one of the chat sessions or interviews. I also remember someone saying that no one at Firaxis could beat Deity level more than once in a blue moon when the game was released. The top 10% of Civ III players can do better than that, so probably no one at Firaxis was in that category at time of release.

The other evidence is the AI engine itself. There are certain design decisions such as combined arms that an experienced wargamer (or Civ player) probably would have made a high priority instead of an after thought. Several patches after release, the AI still has no clue about combined arms. The AI sometimes can be observed running around with a single artillery unit escorted by a single defender, but this is perhaps the least effective way to use bombard units on the offense. On other threads I have suggested relatively easy ways to code the AI to include bombard units in an attacking stack without leaving them open to easy capture. Combined Arms is just one example, there are many more available.

When I factor in what I view as the averageness of Mr. Johnson's gaming skills, the AI is even a greater achievement. Kudos are in order.
BillChin is offline  
Old May 17, 2002, 14:18   #23
hexagonian
The Courts of Candle'Bre
Emperor
 
hexagonian's Avatar
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Jun 1999
Location: Smemperor
Posts: 3,405
Quote:
Originally posted by Grumbold
All in all, its the best out-of-the-box AI from a random map TBS to date. Unfortunately the game lacks the extra functionality that has allowed dedicated fans to turn CtP1/2 AI into rampaging beasts capable of avoiding - or even using against you - all the players favourite tricks.
The CTP2 Modder community thanks you for your kind words
__________________
Yes, let's be optimistic until we have reason to be otherwise...No, let's be pessimistic until we are forced to do otherwise...Maybe, let's be balanced until we are convinced to do otherwise. -- DrSpike, Skanky Burns, Shogun Gunner
...aisdhieort...dticcok...
hexagonian is offline  
Old May 17, 2002, 14:25   #24
Dominae
BtS Tri-LeaguePtWDG Gathering StormC4DG Gathering StormApolytoners Hall of Fame
Emperor
 
Dominae's Avatar
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Jan 2002
Posts: 7,017
BillChin, thumbs up on a very good reply.

Of course, I do have a couple of comments...

The game engine is an interesting place to look for the shortcomings of the programmer. It is also very misleading.

First, humans will always use available resources more efficiently than the computer (if they try hard enough). Why? Because a human player can learn from the AI. Although I admit that artillery is quite an oversight, there will always be something the AI "doesn't do" as well as us people. This does not reflect that programmer's gaming ability, as coding Civ3 is much harder than criticizing it.

Second, the AI was designed to be fun, and not simply challenging. People are forgetting this. If the AI gets so many free units at the beginning of the game, shouldn't it trounce us every time? I've often wondered why the Zulus, with their 10-15 Impi to my 6 Warriors, don't choose to wipe me out immediately. The answer is that it wouldn't be as fun that way (although it does happen for time to time to keep us on our toes). But if I started with extra units, I promise you I would beeline for the closest AI civ and eradicate it.

Third (this point is closely related to the second above), if the true gamers could design the AI, Civ would be boring. By "true gamers" I here refer to what you call the top 1% of the civ community. If this were the case, we'd have the AI ICSing full time, creating naval blockades till the cows come home, pounding cities into the ground with nukes, and plenty of other stuff that just isn't fun for the average gamer. Yes, it would be cool if Deity were like this. However, I firmly believe that such an AI is within Firaxis' capabilities. The reasons not to include it in Civ3 are surely (IMO) other than lack of gaming experience on their part.

Fourth (and most importantly), the Civ3 AI is sufficiently good for 95% of players out there. Coding an AI that accomplishes demonstrates knowledge of strategic game mechanics as well as "fun" game mechanics.

Anyway, I'm not going to push this issue further. I'm simply tired of people criticizing Firaxis left and right (as I unfortunately do, from time to time). From your previous posts I know that you're not a whiner, so all is well.


Dominae
Dominae is offline  
Old May 17, 2002, 15:22   #25
hexagonian
The Courts of Candle'Bre
Emperor
 
hexagonian's Avatar
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Jun 1999
Location: Smemperor
Posts: 3,405
...and Dominae,

Your post is an excellent response to the whole issue of how hard it is to create an AI that would truly challenge a human player - something that I believe cannot be done at this time to the extent that everyone seems to want.

The problem is that the AI, for all its number crunching ability and built-in bonuses, simply cannot plan out a long term strategy. It uses built-in cheats to simulate a thought process. Cheats have to be the norm at this point in time - and the AI cheats are countered by a human having the ability to exploit the way an AI is coded to react in a given situation, because ultimately, the AI is a program.

Take this situation and try to figure out how the AI would figure out what is the best plan of action...

An AI needs to be programmed to take a particular route to get at a target. The question needs to be asked, 'What constitutes the best path to get at that target - the fastest, or a path that may take much longer, but may pay off with a greater gain because it may take the player off-guard?' The choice will vary from situation to situation and is actually a very subjective matter to determine - ask 20 different players and you would get 20 different responses. How do you program the AI to think in a subjective manner?

All everyone has to do is look at the howls of outrage when it was discovered that the civ3 AI was able to see where your defenses were placed in cities and was moving its forces to the most lightly defended city (an obvious cheat). It is interesting to note that once that characteristic was noticed, players had come up with a way to exploit that feature against the AI too.

Your second point is a good one, because it is so true. If the AI played to win (especially with those bonuses), those enemy forces would be on your doorstep ASAP and would be crushing you into the ground. The goal of the human player is to reach the same point when it can do the same against the AI - so the balancing issue for game companies is to give the semblance of a challenge without totally unleashing the AI.
__________________
Yes, let's be optimistic until we have reason to be otherwise...No, let's be pessimistic until we are forced to do otherwise...Maybe, let's be balanced until we are convinced to do otherwise. -- DrSpike, Skanky Burns, Shogun Gunner
...aisdhieort...dticcok...
hexagonian is offline  
Old May 17, 2002, 17:37   #26
Jon Shafer
PtWDG RoleplayPtWDG Gathering StormPtWDG Neu DemogypticaInterSite Democracy Game: Apolyton TeamPtWDG LegolandPtWDG Vox ControliPtWDG Glory of WarPtWDG2 SunshineApolyton UniversityC3CDG Desolation RowApolytoners Hall of FameCivilization IV CreatorsC4DG SarantiumApolyCon 06 ParticipantsPtWDG Lux Invicta
Firaxis Games Programmer/Designer
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Apr 2002
Location: Maryland
Posts: 9,567
I think those fools who challenge deity should have their civs brought to their knees by 3000 BC.
Jon Shafer is offline  
Old May 17, 2002, 19:31   #27
Coracle
Prince
 
Coracle's Avatar
 
Local Time: 19:48
Local Date: October 31, 2010
Join Date: Feb 2002
Posts: 915
hexagonian,

The reality is that never in Civ 2 did so many people complain about the cheating AI. But Civ 3 is so blatant and irritating in the manners in which it cheats that it kills a lot of the fun. What the hell's the point of being "challenged" by an AI that breaks its own rules and does outrageous things in order to be "competitive"?

Make no mistake about this either, the Civ 3 AI does STUPID things, not just cheat. It wastes a lot of its resources sending out settlers to every crappy piece of land anywhere, it throws away settlers marching them into enemy territory, it makes idiotic attacks because it is coded to always go after undefended cannons or workers or resources, etc. These and other stupid AI moves do not need to be in the game; they are there as Soren rushed this thing to market at the behest of his Infogrames masters.
Coracle is offline  
Old May 17, 2002, 19:35   #28
monkeyman
Apolyton University
Chieftain
 
monkeyman's Avatar
 
Local Time: 18:48
Local Date: October 31, 2010
Join Date: Sep 2001
Location: Monkeysville, USA
Posts: 64
What I want to know is whether it is possible to use genetic alogorithms to select and adapt the ai to get a better fit to what happens in the course of a game or series of games? That way, if you start playing in a rut, some variability in the ai might crop up and force you to change your play style. This is in effect what Soren is doing iteratively with each patch, but Soren's manual approach is (somewhat) more predictable in its effectiveness (but not necessarily ala communist collapse of ai in 1.17f). I guess this is also what the CTP mod community is doing. Again, could this approach work out of the box?

-mm
__________________
If Bush bought America, why shouldn't he sell Iraq?
monkeyman is offline  
Old May 18, 2002, 00:14   #29
Dominae
BtS Tri-LeaguePtWDG Gathering StormC4DG Gathering StormApolytoners Hall of Fame
Emperor
 
Dominae's Avatar
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Jan 2002
Posts: 7,017
monkeyman, no genetic algorithm (that I know of) could at present help "fix" the Civ3 AI.

A genetic algorithm requires some framework to determine where "mutations" occur, and what exactly they consist of. For example, if the state of the game could be represented as a bit string, it would be simple matter to change some of the bits so that the AI could alter in subtle ways and eventually adapt to the human players. There are two problems.

First, mutations, taken individually, would have to cause insignificant changes to the AI's existing behaviour, or the human player would, more often than not, playing against an AI that was altering its behaviour in seemingly stupid ways. But insignificant changes, taken together, require too long to evolve into a "good" version; the human player would have to play literally thousands of games to see any effect.

Second, Civ3 is too complex to represent as a bit string, so classic genetic algorithms are out. The "mutations" would have to occur over some complex structures (i.e. game mechanics). For example, slight changes could be made to the pathing algorithm to determine the "best" way of getting from point A to point B. But again, it would require so much time to train the AI to learn what is "best" in various situations that players would get bored with their "stupid 'genetic' AI" (as I can hear them say already!). Furthermore, applying genetic algorithms to these complex structures is (I think) possible, but certainly no piece of cake. It would definitely be more work than Firaxis is being contracted to do.

The Civ3 AI is inherently "simple", but still manages to generate some pretty complex behaviour. The fact that we humans learn to adapt to it is a credit to our incredible brains, not the AI's "stupidity".


Dominae
Dominae is offline  
Old May 18, 2002, 00:22   #30
Dominae
BtS Tri-LeaguePtWDG Gathering StormC4DG Gathering StormApolytoners Hall of Fame
Emperor
 
Dominae's Avatar
 
Local Time: 20:48
Local Date: October 31, 2010
Join Date: Jan 2002
Posts: 7,017
hexagonian, very thoughtful post. The Civ3 AI is a perfect example of artificial intelligence that is in no way intelligent.

The designers made a conscious decision to create a game-playing program that would be competitive with humans. To do so they anticipated human strategies and weaknesses, and coded against them. They also coded in some "cheats" to ensure the AI's competitive edge.

These are essentially rule-based constructs. As has been said many times before, creating a game AI that is as difficult and as fun as that of Civ3 without resource to any fancy algorithms warrants a tip of the hat to the Firaxis team.


Dominae
Dominae is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 20:48.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team