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 > Alternative Civs > The Courts of Candle'Bre > Ai
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
04.Sep: `FC` 2.0.5 COMPLETED AND RELEASED
27.Jul: `FC` 2.0.4 COMPLETED AND RELEASED
16.Jul: `FC` 2.0.3 COMPLETED AND RELEASED

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Velociryx is offline Velociryx
Moderator
of Candle'Bre
Apr 1999
time: 05:36
  Old Post 29-05-2004 05:01 Visit Velociryx's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Ai Support Apolyton, pre-order Civilization IV

'k...here's a topic I know NOTHING about, so this should be fun...

Was just bouncing ideas around in my head, and thought I'd put them here to generate some discussion 'bout AI in general.

Is this intended for inclusion in Candle'Bre? Heck if I know....this is just me thinking out loud. If it makes it into the game, awesome, if it's impractical, then I'm sure some code guru will come along shortly and tell me so!

I was thinking about what makes a good AI, and it seems to me that there are a number of excellent approaches to the problem.

One, and this was an idea I embraced whole heartedly early on, is to give the AI a simplified rules set to operate from.

Players love choices. The more the better.

AI's don't tend to cope well with so many choices, so by streamlining the AI's rule set, we limit the number of choices they have to make, and thus, limit their ability to make foolhardy mistakes.

While this approach is a good idea, IMO, and would make for a pretty lean and mean AI, perhaps there's another way.

The methodology mentioned above is still rules based, and as such, carries a certain amount of predictability.

What would be cool, however, is to create a "Predator AI" - an AI with no rules to follow, but only a few high level mandates and an open-ended set of instructions to facilitate meeting those mandates.

There are companies, mostly writing software for businesses, which are, right now, creating AI's that mimick various animal behaviors. Ants. Flocks of birds, and so forth.

Would it not be possible then, to creat a Predatory AI whose goals were survival and reproduction, and turn him loose on the player?

Such an AI would measure the relative strengths of the other predators around him, and either seek to dominate them (become the alpha male) or to meekly serve if the differences in strength were overwhelming. Reproduction would take the form of conquering new provinces and/or building population base, money would be "food," and so forth.

Give the AI a survival instinct, and some broad-based instructions for reproduction, and then give it some form of "memory" so it can learn what works and what doesn't, and turn it loose....

Might make for a fun little experiment...

-=Vel=-

ApolytonGuest is offline ApolytonGuest
Chieftain

Mar 2004
time: 00:36
  Old Post 30-05-2004 19:40
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization 2

Too bad I know nothing about coding, or I would pitch in and help.

Sounds interesting. What would be fun would be a heuristics program where the program learns from past mistakes. Or genetic algorithms, like the ones they're using for some robots to replace rule-based guidance. I have no idea how complex to code or implement that would be.

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:36
  Old Post 31-05-2004 00:26
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Put an end to popups!

And thus Vel lays down the principle of NEURAL NETWORKS.......

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:36
  Old Post 31-05-2004 05:55
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by Dale
And thus Vel lays down the principle of NEURAL NETWORKS.......


If only he would have been a 100 years ago, we would have decent AI's by now.

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:36
  Old Post 31-05-2004 15:45
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Actually, my mistake. What Vel described (and hoped for) is a genetic string AI that passes on it's experience to later AI iterations (think of an iteration as one full game).

That's even harder than a neural network to code.

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:36
  Old Post 01-06-2004 21:24
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Lose 30 kilos (of popups)

I'm taking AI next year. Maybe I could help (probably not, this sounds incredibly difficult)

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:36
  Old Post 03-06-2004 03:03
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Tired of ads?

Where does one take AI classes? UNI?

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:36
  Old Post 03-06-2004 03:04
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

High school.

H Tower is offline H Tower
Emperor

Jul 2001
time: 23:36
  Old Post 03-06-2004 09:55
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton

intelligence in high school?

H Tower is offline H Tower
Emperor

Jul 2001
time: 23:36
  Old Post 03-06-2004 09:57
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

for the AI, it's been said that you can't build monestaries in the same towns that you build Pubs in, right? wel what if you had the indevidual AIs start out with one set thing in mind, focus only on the faith technologies for AI #1, have AI #2 focus only on the "sin" technologies for lack of a better word.

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:36
  Old Post 03-06-2004 10:36
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by H Tower
intelligence in high school?


I can also take Supercomputer Science and Computer Architecture, just to name a few

We have a Cray

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:36
  Old Post 03-06-2004 22:40
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Inflate your Upload Space

I would LOVE to see a thread on AI basics...

H Tower is offline H Tower
Emperor

Jul 2001
time: 23:36
  Old Post 04-06-2004 07:57
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Call to Power 2

quote:
Originally posted by Kucinich
We have a Cray


We're obviously not thinking about the same thing here.



Where do you go to high school?

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:36
  Old Post 07-06-2004 05:30
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

here

Blade Runner is offline Blade Runner
Prince
Belgium
Jan 1970
time: 06:36
  Old Post 06-09-2004 18:39
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton buy from Amazon

IMHO you can try to build a modular AI system to solve the problem. You can build a short term and a long term strategy AI and smaller AI modules to supervise just one or other aspect of the game i.e.: resource gathering, army building, army movements, etc. This way you can build them almost independent each other, so to testing and building will be much easier, than one big complex AI.

Velociryx is offline Velociryx
Moderator
of Candle'Bre
Apr 1999
time: 05:36
  Old Post 06-09-2004 19:41 Visit Velociryx's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition



This makes one helluva lot of sense to me....

-=Vel=-

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:36
  Old Post 07-09-2004 06:03
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton

I actually agree with this method. I like to think of it like this:

- President of the nation (determines ultimate end-game goal).
- Ministers (determines each departments goal to reach end-game goal. Eg: economic minister determines money goal, diplomatic minister determines foreign goal, etc).
- Unit commander (determines each individual goal to reach a minister's goal. Eg: Unit A moves to there, etc).

Velociryx is offline Velociryx
Moderator
of Candle'Bre
Apr 1999
time: 05:36
  Old Post 07-09-2004 06:09 Visit Velociryx's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton buy from Amazon

Go get 'em, Master Dale! (oh, and the basic event engine is almost done! Will need this upcoming week to examine and tweak, once everything is in place, in order to finalize, but at long last, that task is nearing completion!)

-=Vel=-

strategy is offline strategy
Settler

May 2002
time: 05:36
  Old Post 08-09-2004 22:46 Visit strategy's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
AI... Get a bigger avatar today!

It's never a good idea to tack on the AI as an afterthought (even if this sometimes seems to be the industry norm). My own belief is that games should at least partially designed around the AI (cf. my own attempt, Imperium); mostly because, in addition to the balance between "realism vs gameplay" that is often claimed, there is also the balance of "AI vs gameplay" to be considered. "Cool" gameplay ideas can easily defeat the work of even the best AI programmers by producing mathematically intractable problems.

If I understand CCB correctly, then single player is not the focus of the design, but these are still things you need to keep in mind while working on the game if you want to include an AI. Some comments below:

quote:
One, and this was an idea I embraced whole heartedly early on, is to give the AI a simplified rules set to operate from.

Players love choices. The more the better.

AI's don't tend to cope well with so many choices, so by streamlining the AI's rule set, we limit the number of choices they have to make, and thus, limit their ability to make foolhardy mistakes.


This only works if the Game design itself allows the limitation of gameplay to a few options - in which case your game design probably has a problem (i.e., if you have lots of actions but only a few of them make sense). If this is not the case (i.e., there are lots of good actions but the AI uses a narrow set of them), then the players are going to walk all over your rule-based AI.

In general, a rule-based AI can be lean and mean only if the game design is lean and mean as well (i.e., something slightly more complex than tic-tac-toe). In all other cases, it will either be monstrously complex, or nothing but a stumbling block for a half-competent player.

quote:
Would it not be possible then, to creat a Predatory AI whose goals were survival and reproduction, and turn him loose on the player?


Although you start by referring to flocking, I think your thoughts here range more towards genetic algorithms. Genetic algorithms are a very interesting field, but - unfortunately - probably not all that useful for complex turn-based strategy games of this type. GAs are great for small intelligent agents, where the cause and effect are very easy to understand. The trick is to determine "genetic fitness"; i.e., when is the AI being success, and then to determine how to crossbreed "fit" AIs in order to improve the "breed".

This is fairly easy for something like a FPS, for instance, since the "fitness" is determined easily by number of kills/number of deaths, and the number of viable strategies are rather limited. In a strategy game like CCB, however, you have the problem: 1) How do you determine "fitness"? In the face of uncertainty in the game, winning alone is hardly sufficient. 2) How do you cover all the possible strategies? You could spend years evolving an AI for the game, only to see it taken down because its "DNA" failed to take into account some silly little strategy that was not included in the ancestor AIs.

What Bladerunner and Dale are on about in the last couple of posts relates to Hierarchial AIs. This seems to be quite popular these days (I'm doing something similar myself for Imperium); simply because they - in theory - allow you to break down a big and complex problem into a small and tractable one. How well this actually works is another matter.

There is a quite nice discussion about this as well as strategic dispositions archived on the GameAI page.

Of course, the rest of the gameAI page is also an excellent ressource on game AI.

Finally, AIWisdom.com is an excellent and extensive catalogue of game AI articles.

Hope this helps. Building a competitive AI is probably the hardest part of developing a computer strategy game - one reason who most games have pretty lame AIs (the other being that graphics sell more than a good AI).

A thought: assuming you are focusing primarily on the multi-player aspect of the game, it might be worth considering leaving the AI parts entirely alone until everything else in the game is completed. It may be better to have people complain about something that doesn't exist, rather than having them slate the game over an AI that wasn't intended to be "taken seriously" in the first place.

Velociryx is offline Velociryx
Moderator
of Candle'Bre
Apr 1999
time: 05:36
  Old Post 08-09-2004 22:54 Visit Velociryx's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Get a bigger avatar today!



An excellent post, and it looks like I got some reading to do...

-=Vel=-

strategy is offline strategy
Settler

May 2002
time: 05:36
  Old Post 10-09-2004 03:43 Visit strategy's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Tired of ads?

Glad if it is of use. You're welcome to contact me if you have some questions or otherwise; I can't help out a lot (I'm far too busy working on Imperium) but I'm always happy to discuss.... maybe too happy.

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:36
  Old Post 11-09-2004 11:44
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Lose 30 kilos (of popups)

I agree with the coders out there. In Clash, we use a hierarchical ai (though it's not full fledged):
Each civ has a military ai and a policies ai.
The military ai has several sub ai's (plans) each in cgarge of an objective (typically attack, defense), and the main ai decides how many resources should go to which sub plan. Each sub ai manages task forces and gives them objectives. Each unit is assigned to a task force by the sub plan that got the unit. Knowing that there's a list of awaited reinforcements which help dispatch units to the good task forces.
About buildings, we don't have them in Clash, and the tech tree is still too limited to need an ai. However, you can probably make choices easily with f.e. two main plans, one sinner and one religious (or more), and each one bids for a building to be built. The important is that bidding: You must evaluate whether following your strategy will yield good results. If it doesn't, then you should switch to plan B. That evaluation is what drives evolutionary algorithms by the way.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:36.
Apolyton Time is 00:36.
    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.0539 seconds (90.67% PHP - 9.33% 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