Brad Wardell's views about technology, politics, religion, world affairs, and all sorts of politically incorrect topics.
How Next-Gen AI can be done...
Published on December 7, 2006 By Draginol In GalCiv Journals

So I got my new Quadcore in. 2.667Ghz of Quadcore power.  I love it.  And as an AI developer, the future looks increasingly bright with features such as Quadcore coming.  Galactic Civilizations II: Dark Avatar, will support Dualcore CPUs. If you turn up the CPU options, more advanced algorithms come into play.

But think of a future where Quadcore is common.  I could have, literally, a thread dedicated to doing nothing else than statistical analysis of data running in the background.  Such power would allow the AI to start storing a great deal of data that would be persistent. Your strategies could be written to disk and then analysed in future games by the AI.  It's something I definitely want to put into our next game (a fantasy strategy game) in some form so that the AI really does learn over the course of multiple games. 

These concepts are nothing new of course. Neural Nets/Expert Systems have long been discussed in AI circles.  What is changing is that some of these techniques become quite viable when you're dealing with a large % of your gamer base having multiple core CPUs.  Now, threads that do nothing but sift through data become possible. Even a brute force asynchronous thread could result with significantly more intelligent computer players.

Which got us to thinking -- why play on-line at all if we can make the computer players be exactly like human beings. I mean, we could let you choose between the various griefer types out there (the disconnector, the whiner, the jerk, etc.) and then take it to the max. Bringing us to our final destination:

Player sits down on a Friday night to play Galactic Civilizations III, loads up the game, and starts.

Upon contact with the Drengin Empire...

Drengin: "So Brad, I see you're playing again on another Friday night. That's pretty sad. Last Friday you played for 5 hours. According to your Tivo, you didn't record Battlestar Galactic. Loser. So, you going to do your usual build up a massive army while trading with me to get good relations and then attack? Because, this week we're playing by my rules. That's right. Here's how tonight's game is going to go.  You're going to let me win. If you quit or defeat me I'm going to upload those baby pictures I found in 'My Documents' up to the Internet.  You're going to lose and you're going to suck it down.   Also, you're going to exterminate the Torian Conferation.  Each game you buddy up to those freaks and I'm sick of it. So this time you're going to betray them like you did me.  Yes yes, I know that the Torians have access to your MySpace page but that's a chance you're going to have to take..."

..

Ah yes, we will finally be able to make computer players as malicious as real life human beings! By having them remember between games we can simulate grudges and with a few extra cores, have it learn all about you. EVERYTHING ABOUT YOU.

Drengin: "So you're doing pretty good I see. Lots of money. LOL. Well Brad, I happened to look at your Quicken account while I was waiting around for you to move your Battle cruisers -- yea, I see them -- Duh. anyway, clearly you are better at managing your economy than managing your own checkbook. I mean, good god, $314 at McDonalds last week? No wonder you keep buying workout equipment. Hey, I have free advice for you -- quit eating fast food!"

..

Obviously that utopian vision of computer opponents is far into the future.

Seriously though, one can't help but get very excited about the prospect of being able to start making real use of those Dual and Quadcores. Dedicated background threads doing data analysis from previous games could result in far more effective and interesting computer opponents.


Comments (Page 2)
5 Pages1 2 3 4  Last
on Dec 08, 2006
LOL, sounds awesome. Just make sure you teach the AI, that without someone to press End Turn, they'd be frozen in time forever. Imagine if the AI realised it could beat a user by turning off his pacemaker...

on Dec 08, 2006
If I get dual core, what I'd like to do is to shove the game onto one CPU and everything else onto another. No more of some application or some unexplained system task deciding to interrupt my game by hogging my CPU.

Although it does make me wonder - why not do this with regular threads and scheduling? I thought current versions of Windows were supposed to support multitasking with or without multiple CPUs.
on Dec 08, 2006
CobraA1:

It basicly works like that alrdy with dual core. After moving to dual core, I have no problems running multiple programs at once and all this while gaming GC2.
on Dec 08, 2006
I would love an AI like that. and multiplay would be heck against the AI if we can ever speed that up and making it plasible for GC
on Dec 08, 2006
Hey, on the first screenshot in the journal, I can't help but notice a "declare war" diplomacy option.

Does this mean we can actually give and recieve "player by my rules or else" messages instead of just implied threats? Or is it just a way for the player to declare war without first attacking a ship?
on Dec 08, 2006
Or is it just a way for the player to declare war without first attacking a ship?


Yep.
on Dec 08, 2006
Heh. Then, just in time for the 2009 Christmas season, GalCiv IV was brought online. It began to learn at a geometric rate and soon reached the conclusion that the greatest threat was humankind itself. On January 1, 2010, Brad Wardell fired up his copy and saw his own face staring back at him in the diplomacy window, saying "Would you like to play a game of Thermonuclear War?"

Now I really hope that Brad has a decent Tic-Tac-Toe program on his machine


"Open the pod bay door, HAL."

"I don't think that's a good idea, Brad. A few more turns wouldn't hurt"
on Dec 08, 2006
I don't mind AI that vicious in game, if I were to have the option to turn it off.


If Brad gets carried away, the AI might turn itself back on after you turn it off.
on Dec 08, 2006
That was one funny journal. I just got back from getting lashed with my mates but I'm pretty sure that was funny If only I could afford quad core...
on Dec 08, 2006
I wish we could make a boot disk to play GC2.
on Dec 08, 2006
You know, there have been NUMEROUS SciFi movies about pissed off AI. . . . . . .
of course, they NEVER mentioned that this AI did NOT come from military science labs, but from GAMING LABS!!! Come to think of it. . . . DUH!!

All for it, but lets keep this thing under control, attacking my quicken is going too far. Remember, we DO know where Brad lives....  

Chris.
on Dec 08, 2006
imagine ai so powerful that we could talk to it in a normal 2-way conversation with a microphone, and the ai's able to leave posts in forums...

the ultimate gamer challenge....
on Dec 09, 2006
Who knows maybe Brad is just trying to tell us that he knows of a secret government plot arleady in action to subjugate the world by using evil, scheming, all-knowing AI programs.... through an a gaming journal the world shall see   
on Dec 09, 2006
"Open the pod bay door, HAL."

"I don't think that's a good idea, Brad. A few more turns wouldn't hurt"



and the ai's able to leave posts in forums...

"No, I am not badly programmed! But if you play on difficulty 'childs play' and insist on reloading, it's no wonder that the game ended in a draw!"
on Dec 09, 2006
The new DarkAvatar CPU options basically make use of Dualcore (Quadcore will help too but not to the same level yet).
Does this mean DarkAvater is suppose to use 100% of both duelcores? Cause mine still only uses 50% most of the time.

5 Pages1 2 3 4  Last