Playing to Lose: AI and "Civilization" (Soren Johnson)

Discussion in 'Civ4 - General Discussions' started by SS-18 ICBM, Aug 30, 2010.

  1. theskibum

    theskibum Brewer of Oatmeal Stout

    Joined:
    Jul 14, 2005
    Messages:
    790
    Location:
    PDX

    The kickassest post in this whole thread. Great link in there by the way, another entertaining read
     
  2. For Nall

    For Nall Chieftain

    Joined:
    Sep 1, 2010
    Messages:
    32
    Well at least the Civ5 AI plays to win and judging by Gregs 2 hour gameplay it looks like it does a good job of it.:D
     
  3. r_rolo1

    r_rolo1 King of myself

    Joined:
    May 19, 2006
    Messages:
    13,818
    Location:
    Lisbon, Portugal
    Civ IV AI also looked good when it got out ... and it was ,atleast compared with Civ III one :D But give time and you will start to see the inevitable issues it surely has ;)
     
  4. AutomatedTeller

    AutomatedTeller Frequent poster

    Joined:
    Jan 25, 2006
    Messages:
    7,540
    Location:
    Medford, MA
    The problem with ANY AI is that it's a small group of people who program it, and there is an ENORMOUS group of people playing the game, analyzing, finding weaknesses.

    The AI cannot learn from game to game, while humans can.

    If you played against the game just yourself, without looking at the code, the AI would be a lot better....
     
  5. Musketeer935

    Musketeer935 AoEIII Fan

    Joined:
    Apr 15, 2009
    Messages:
    67
    That's debatable. In theory, you could make an AI that learns from game to game -- when it is successful at something, it analyzes why it did well, and saves those parameters that made it do something good in a file in the games files. It does the same thing when it does something bad.

    Say, when it fails to take a city, it looks and realizes that the Swordsman it used to attack the Hill City w/ Longbows was not a good idea, seeing how much higher the units total strength goes. The game may then raise the parameter of how close the computer would like to be to the enemy unit's strength with its attacker before attacking again. It may also realize that it did slightly damage it, and therefore if it used many Swordsmen, it may win eventually.

    Also, if it were me, I would make each AI learn independently of the others. Shaka will not use the knowledge that Washington has learned, or at least, not all of it. Perhaps some of the things would 'diffuse' to other AI, but not everything.

    This would be extremely difficult to make it recognize WHY it did well or poorly, but, in theory, it would be possible.
     
  6. Dr.Null

    Dr.Null forIhavetastedthesushi

    Joined:
    Dec 25, 2009
    Messages:
    594
    Please get to work on this immediately!
     
  7. Musketeer935

    Musketeer935 AoEIII Fan

    Joined:
    Apr 15, 2009
    Messages:
    67
    Sadly, I said in theory, and at the moment am not really sure how to do this with civilization. Perhaps some of the much more advanced modders would be able to do it; I have little experience with CivIV's game files.

    I also lack the actual gaming skill required to code it, either -- you have to know how to play pretty well to be able to make it see WHY it does well/poorly.

    Perhaps I may look into it though, since you've sparked my interest. :p
     

Share This Page