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 IV > Civilization Series-General > Good AI is Critical for the Next Big Step in Civ Games
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
22.Sep: BLUE IS OCEAN, GREEN IS GRASS
22.Sep: SMAC-LIKE UN COUNCIL CONFIRMED
21.Sep: GERMAN `ANONYMOUS` LAUNCHES

bottom of page
  
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:25
  Old Post 23-01-2003 20:17 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#31 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
Originally posted by Lemmy
Adaptive AI wouldn't require much processor power, it's basically looking things up, and saving new things. It would require more space, but the space needed can be brought down by an efficient design, for example by not saving all cases, but only the most "important" ones, and keep averages for the remaining cases.


Hi Lemmy,

There is a way to do basically what you're looking for, in a practial sense. But it requires human intervention. Essentially players can provide input into the expert system. All that is required is that the game producer provide time after a large player base is available so that the programmer can update the expert system based on players' experiences and ideas. Of course the expert system needs to be flexible enough to represent the player strategies accurately in terms of their realms of applicability. That is a very tall order already!

Its nowhere near as sexy in an AI sense as what you want to do, but it will work with current technology for a game with the depth of civ

panag is offline panag
Emperor
MY WORDS ARE BACKED WITH BIO-CHEMICAL WEAPONS
Oct 2000
time: 07:25
  Old Post 28-01-2003 07:04 Visit panag's homepage!
Edit/Delete Message Reply w/Quote
#32 Report this post to a moderator
Browse Apolyton AD-FREE

hi ,

, Soren has not reached his limits yet , .......

the real Q is , a better AI shall need a better comp , .....

do most people have comps that require what is needed for an improved AI , ....



have a nice day

Leland is offline Leland
Prince

Jan 2000
time: 07:25
  Old Post 28-01-2003 10:36
Edit/Delete Message Reply w/Quote
#33 Report this post to a moderator
Get a bigger avatar today!

I don't think that computing power is that relevant in TBS genre... serious strategy gamers would gladly wait for 10-20 minutes per turn if they got more intelligent AI in exchange. The fact that games generally don't have an option of setting AI "depth" in this manner seems to imply that currently AIs are based on clever heuristics rather than brute force.

panag is offline panag
Emperor
MY WORDS ARE BACKED WITH BIO-CHEMICAL WEAPONS
Oct 2000
time: 07:25
  Old Post 28-01-2003 17:49 Visit panag's homepage!
Edit/Delete Message Reply w/Quote
#34 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by Leland
I don't think that computing power is that relevant in TBS genre... serious strategy gamers would gladly wait for 10-20 minutes per turn if they got more intelligent AI in exchange. The fact that games generally don't have an option of setting AI "depth" in this manner seems to imply that currently AIs are based on clever heuristics rather than brute force.



hi ,

well aslong as they include an option ; "turns in 1 min" - "turns in 20 min" ( with extra intelligent AI ) , ......

no thanks , no-one is going to wait 20 minutes , .........

3 - 4 tops , thats it , it has to be possible , no more then that and a more intelligent AI

have a nice day

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:25
  Old Post 30-01-2003 07:20 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#35 Report this post to a moderator
Support Apolyton, buy Call to Power 2

I don't want the turns to take any more than about 20s to crank! Nearly instantaneous is best.

The best thing to do for AI is run it while the player is moving! Threading immensely changes what you can accomplish with the AI. GalCiv has, and Clash will have threaded AI, and I think its going to change the playing field for AI in the genre. But then again, I'm just a little bit biased.

panag is offline panag
Emperor
MY WORDS ARE BACKED WITH BIO-CHEMICAL WEAPONS
Oct 2000
time: 07:25
Question  Old Post 30-01-2003 15:43 Visit panag's homepage!
Edit/Delete Message Reply w/Quote
#36 Report this post to a moderator
Increase the size of your Attachments

quote:
Originally posted by Mark_Everson
I don't want the turns to take any more than about 20s to crank! Nearly instantaneous is best.

The best thing to do for AI is run it while the player is moving! Threading immensely changes what you can accomplish with the AI. GalCiv has, and Clash will have threaded AI, and I think its going to change the playing field for AI in the genre. But then again, I'm just a little bit biased.


hi ,

what is really needed is a state of the art AI that can run turnless in real time (!) , ......

but , is this possible

have a nice day

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:25
  Old Post 31-01-2003 18:53 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#37 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by panag
what is really needed is a state of the art AI that can run turnless in real time (!) , ......

but , is this possible

have a nice day


Hi panag, I don't get what you mean. Civ isn't real-time and I hope it never is! But as I said above, thinking in the background while the player moves is vital for good AI.

panag is offline panag
Emperor
MY WORDS ARE BACKED WITH BIO-CHEMICAL WEAPONS
Oct 2000
time: 07:25
  Old Post 31-01-2003 20:06 Visit panag's homepage!
Edit/Delete Message Reply w/Quote
#38 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Mark_Everson


Hi panag, I don't get what you mean. Civ isn't real-time and I hope it never is! But as I said above, thinking in the background while the player moves is vital for good AI.


hi ,

well there are seveal games around who have something that comes a bit close , but even they are far from being state of the art , .....

remember C&C , tiberian sun , firestorm, ....

something like that , but in real time , where there is a constant AI who runs , .....

sincve some people shall not like this , this could be solved with a basic "on / off" , ....

have a nice day

Andemagne is offline Andemagne
King
Rovaniemi, Lappland, Finland
Dec 1999
time: 07:25
Talking  Old Post 02-02-2003 18:09
Edit/Delete Message Reply w/Quote
#39 Report this post to a moderator
Re: Good AI is Critical for the Next Big Step in Civ Games Support Apolyton, buy GURPS/ Alpha Centauri

yes it is. are games with not so good AI worth playing?
(=> are Civ2 & Civ3 worth playing 'cos they have so bad AI?)

MrBaggins is offline MrBaggins
King

May 1999
time: 05:25
  Old Post 03-02-2003 07:50
Edit/Delete Message Reply w/Quote
#40 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by Mark_Everson


Hi panag, I don't get what you mean. Civ isn't real-time and I hope it never is! But as I said above, thinking in the background while the player moves is vital for good AI.


Intelligent human players will then play 'speedciv' to keep the AI from utilizing down time to think.

panag is offline panag
Emperor
MY WORDS ARE BACKED WITH BIO-CHEMICAL WEAPONS
Oct 2000
time: 07:25
  Old Post 03-02-2003 12:40 Visit panag's homepage!
Edit/Delete Message Reply w/Quote
#41 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
Originally posted by MrBaggins


Intelligent human players will then play 'speedciv' to keep the AI from utilizing down time to think.


hi ,

true , most players like to think in advance , after a couple games they shall have outlined the big lines they want , ......

with a bit of strategy its easy to beat the AI , so after a couple times its fun , after 20 times its no longer fun , it just becomes past-time , ....

the AI in civ three - PTW needs to be improved , ......

have a nice AI day

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:25
  Old Post 11-02-2003 12:10
Edit/Delete Message Reply w/Quote
#42 Report this post to a moderator
Lose 30 kilos (of popups)

quote:
Originally posted by Mark_Everson
4. At this point, if it's required that we stop, we just pick from the best indicated strategies. If there is extra time, there is a large variety of things that can be done. The one that I think is most attractive, is to encode the strategies as as individuals in a population of a genetic algorithm approach. We then pursue more simulations as in 3, but while tweaking the strategies through mutation and crossover. If the rule-based approach can give us any hints as to which are the most productive things to change, the more the better. The chromosomes will not generally contain numbers at all, but contain strategic objects. "Take Berlin", "obtain alliance against the Greeks". A mutation in the strategy might be something like "it would be nice to get an alliance against the Greeks, but it isn't that essential", or "it's Imperative". I'm not sufficiently foolish to think that this approach will very frequently give an answer better than the rule-based approach. However, it has the potential to break the AI out of the rut of always doing "predictable" things.


You certainly can play around with evolutionary algorithms, but there are certain problems with that. First of all, your AI needs to be completely flushed out. Then, you need to somehow induce mutations and put them through a set of evaluation criteria, neither of which is a simple task. Another thing is you need to run the evolutionary algorithms as a meta-game, i.e., you need to do it outside the game, you can't do it when a game is running.

My take on this is heuristics. Start with a decent expert system, but add the capacity to learn from human players. That way, the AI is never obsolete. It can learn from playing with humans, and the developers can keep training it even after the game is released, and release the new code and/or database to make the AI smarter. This way, the game can be challenging for a long time.

Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:25
  Old Post 13-02-2003 03:46 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#43 Report this post to a moderator
Increase the size of your Attachments

quote:
My take on this is heuristics. Start with a decent expert system, but add the capacity to learn from human players. That way, the AI is never obsolete. It can learn from playing with humans, and the developers can keep training it even after the game is released, and release the new code and/or database to make the AI smarter. This way, the game can be challenging for a long time.

I believe this is what the GalCiv dev team has planned for their own AI/

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:25
  Old Post 13-02-2003 05:22 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#44 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Hi UR:

quote:
Originally posted by Urban Ranger
You certainly can play around with evolutionary algorithms, but there are certain problems with that. First of all, your AI needs to be completely flushed out.


I don't know what you mean by this. Care to elaborate?

quote:
Then, you need to somehow induce mutations and put them through a set of evaluation criteria, neither of which is a simple task.


My ideas on this are crudely described in the AI documentation. There will clearly be some art involved in this, but I don't think it'll be especially difficult.

quote:
Another thing is you need to run the evolutionary algorithms as a meta-game, i.e., you need to do it outside the game, you can't do it when a game is running.


What is this statement based on? AFAIK it is utterly incorrect . We are going to run the AI for Clash in-game in one or more separate threads.

The GalCiv approach, which appears to be quite good is, as Lemmy says, like what you appear to be describing. I expect it'll work quite well, but takes more dedication than the usual game software company is willing to expend. I'm looking forward to GalCiv rather a lot .

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:25
  Old Post 13-02-2003 08:09
Edit/Delete Message Reply w/Quote
#45 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by Mark_Everson
I don't know what you mean by this. Care to elaborate?


That means the AI has to cover all the possibilities. If something is not in the code/database, it doesn't know how to handle it, and goes haywire in all likelihood. But knowing what to expect in the game is directly related to experience, which isn't something a programmer will have when writing the AI routines. You can tell this by all the expert systems in all the 4X games, they are okay, but ultimately they all rely on cheating - breaking the rules.

quote:
Originally posted by Mark_Everson
What is this statement based on? AFAIK it is utterly incorrect . We are going to run the AI for Clash in-game in one or more separate threads.


Based on the genetic algorithms I have seen Not a whole lot, mind you, but the point is to have the individuals and an environment. If the individuals are the AI routines, the environment will be an arena with a set of criteria where these routines compete.

I am not 100% sure you cannot run the arena in situ, but you will need to spawn hundreds if not thousands of individuals for thousands of generations. This will be much better handled by a meta-game, i.e., run the arena outside the game itself to do the evolution.

A drawback of any evolutionary algorithm is that a solution is "better" only in comparison to other, presently known solutions; such an algorithm actually has no concept of an "optimal solution," or any way to test whether a solution is optimal. This is not entire true of Civ.

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:25
  Old Post 14-02-2003 17:13 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#46 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Hi Urban Ranger, thanks for the detailed response.

quote:
Originally posted by Urban Ranger
That means the AI has to cover all the possibilities. If something is not in the code/database, it doesn't know how to handle it, and goes haywire in all likelihood. But knowing what to expect in the game is directly related to experience, which isn't something a programmer will have when writing the AI routines. You can tell this by all the expert systems in all the 4X games, they are okay, but ultimately they all rely on cheating - breaking the rules.


What you say is a problem with an AI constructed by very simple heuristics of the if/then type. I agree that that is a standard for AI now, but that is one of the things I think needs to be discarded to get the next step in AI for civ games. We will certainly have a set of heuristics to suggest good starting strategies, but where we differ from the standard approach is that we then passed several strategies to see which fits better in a given situation. What the Clash AI does is it has a cartoon of the world for each type of strategy any uses the cartoon version, which is based on game parameters, to estimate success of a strategy. Each type of strategy, FE "attack area" to try to take control a given area of the map, has its own cartoon of the world that outlines the big issues involved. It's kind of the way people think about it. This is gone over in great detail in our "AI Plan" document in "AI -- the thread" on the Clash forum. There is a link to that thread in the third post of this thread.

quote:
Based on the genetic algorithms I have seen Not a whole lot, mind you, but the point is to have the individuals and an environment. If the individuals are the AI routines, the environment will be an arena with a set of criteria where these routines compete.

I am not 100% sure you cannot run the arena in situ, but you will need to spawn hundreds if not thousands of individuals for thousands of generations. This will be much better handled by a meta-game, i.e., run the arena outside the game itself to do the evolution.


Well, it's back to the books for you! That is in fact a typical way GAs are run for engineering optimizations and other things warrior doing your very best to find the absolute global optimal. This is a GAME and I certainly don't attempt to optimize all my strategies in it, why the heck should the AI? The job of GAs in Clash is to just take stabs in the dark looking for "surprise" approaches, that are different from Clash-standard AI, to make the AI less predictable.

quote:
A drawback of any evolutionary algorithm is that a solution is "better" only in comparison to other, presently known solutions; such an algorithm actually has no concept of an "optimal solution," or any way to test whether a solution is optimal. This is not entire true of Civ.


When you can play an optimal game of civ I will worry about it. We are only looking for an entertaining and sometimes surprising AI.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:25
  Old Post 05-03-2003 12:40
Edit/Delete Message Reply w/Quote
#47 Report this post to a moderator
Enter the AD-FREE zone

Just read something interesting about Galatic Civilization. Brad said they got 6 AI routines, 5 for the major powers and 1 for the minor powers. Strangely, the 5 are the same thing written by different programmers. They did it to prevent a player from exploiting weaknesses in any one of the routines.

I reckon this can be eliminated if the AI can learn from the human players. In this way, programmers can train the AI so it can take on various approaches (aggresive, defensive, etc.) without extra programming efforts.

A very good example is the old, old Atari game called Castle. Not sure if you can still find it anymore, though.

mactbone is offline mactbone
Prince
Lift Your Skinny Fists Like Antennas to Heaven
Sep 2001
time: 23:25
  Old Post 06-03-2003 07:00
Edit/Delete Message Reply w/Quote
#48 Report this post to a moderator
Support Apolyton buy from Amazon

Speaking of adaptive ai etc.

Ever hear of EvoChess? I discovered this last year or so and started running it. It's basically a simple chess program that uses "genetic" models to get the best AI. Not only does it pit your generated algorithms against already made "good" algorithms - there is also some migration over the 'net. This was all part of someone's research paper.

I can't find a simple page with everything so here are the various pages (it helps if you know German, I'm sure but most of the documentation is in English)
http://ls11-www.cs.uni-dortmund.de/...ch/evoChess.htm
http://www.science-at-home.de/index1.htm?/evochess.htm (only in German)

Ahhh, here's probably the best info.
http://www.aspenleaf.com/distribute...rib-recent.html
Scroll down to Qoopy, about halfway down.

panag is offline panag
Emperor
MY WORDS ARE BACKED WITH BIO-CHEMICAL WEAPONS
Oct 2000
time: 07:25
Arrow  Old Post 06-03-2003 15:04 Visit panag's homepage!
Edit/Delete Message Reply w/Quote
#49 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

hi ,

after been forgotten for a long time ; http://www-cs-students.stanford.edu/~soren/

its Sorens work on AI , .....


and he is good , ....

have a nice day

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:25
  Old Post 07-03-2003 18:37 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#50 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by Urban Ranger
Just read something interesting about Galatic Civilization. Brad said they got 6 AI routines, 5 for the major powers and 1 for the minor powers. Strangely, the 5 are the same thing written by different programmers. They did it to prevent a player from exploiting weaknesses in any one of the routines.

I reckon this can be eliminated if the AI can learn from the human players. In this way, programmers can train the AI so it can take on various approaches (aggresive, defensive, etc.) without extra programming efforts.


Hi UR:

I'm no sure I get it. What exact mechanism do you forsee for the AI learning from players? Is it in-game or outside the game (FE by programmers adding new player strategies by hand) that this is done?

Thanks for the references panag and MacTBone. I'll try and check them out at some point.

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:25
  Old Post 10-03-2003 02:20
Edit/Delete Message Reply w/Quote
#51 Report this post to a moderator
Support Apolyton buy from Amazon

Soren's AI work is a very clear indication of what he did in Civ3: He says the game must have a small anough search space that the computer can search it efficiently, which means dumbing down game mechanisms so that whatever the ai doesn't know how to exploit effectively should be removed. Someone wrote an article on Civ3 showing that was exactly what happened.

On a different game, MOO3 seems to have gotten out with a pitiful enemy AI (the viceroys seem to be good but not always doing what you expect them to do). The interesting bit of info is that the MOO3 team changed AI settings 2 weeks prior to release because it was too hard, and ended up with a too easy AI. Since that looks like algorithmic rather than text files tweaking, it is quite sad. On another side, GalCiv is supposed to have an efficient AI which can be tweaked by changing just one figure, which decides whether or not it will recognize threats and decide of certain advanced tactics. I'd really like to see this one come out in France soon...

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:25.
Apolyton Time is 00:25.
    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.0738 seconds (93.28% PHP - 6.72% 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