New AI in Games
I know i'm a bit late on this. Oh well.
It just occured to me, after reading previous posts a ways up, concerning Lerning AI, and the will to survive.
First we all know of the plain advantages of Computer AI. Its ability to micromanage units amasingley well, its thinking speed is genrally determined on the resources that are allocated to it(Now adays, quite abit), and its scripted goodness(E.X they adapt to some degree)
Now lets add in some variables. Lets give the AI the ability to adapt and learn from its mistakes. And i'm not talking just heay, he attacked me from my left, lets guard the left more. I'm talking along the lines of "Heay, he attacked me with 2 siege tanks and 12 marines, and he managed to defeat my 3 bunkers filled with ghosts, while taking on minimal losses in the process". And i'm talking learning where it writes code itself to an(external?) file, and can pull from it whenever it needs. Couple this with the computers ability to multitask, and you give it the ability to instantley adapt to any situation, to the point where it has already figured out everything that you can do, and has countered them allready. We as humans dont have a chance to adapt as fast as a Computer. Our only advantage right now is Strategy/Tactics, and our ability to learn from out mistakes. Counter our ability to learn, with the computers SUPERIOR ability, and we are left with mereley Strategy and Tactics. Those can be overcome to some end by AI Code. Which brings me to the next subject.
What if you gave the computer something resembeling the Will to Survive? What if you gave it the bare emotional 'programming', so to speak? Must have Health. If odds outnumber, run away and ither regroup, rebuild, or hide. Fight or Flight. That kind of thing. Just giving the AI the ability and the will to survive(Instead of SC AI, where it just sits in its base as you wipe it out)? I mean, sure, it will try to rebuild its command center, but where its base WAS? I the way of the fleet? No, thats not will to survive, thats not its recognition of the fact that if it runs out of buildings it dies. No, thats just its want to collect resources. Giving it a will to survive would definitley make things more challenging. Its like a little branch of Consiousness with 1 track. Live.
Rather like this little tidbit..
IS base Under attack?
-Yes
Check Attack strength(Measure power of attackers in Base range)
Check Defense Strentgh(Measure power of friendley units and defense structures in base)
-Somewhere in here would be provisiions for trying to save the town)
-If AttackSTR>DefenseSTR
-Get count of buildings. Store count of Buildings. Send SCV(S) away from base to save_area(Safe_Area=Area where there are no enemy units)
-Else, if CountBuildings=1, Build S_Depot
-If CountBuildings>1, Find Safe_Area, then Find_Safe_Resources(Resources where there are no emeny units)
-Check the Base(Attack STR and Defense STR)
-If the base Is under attack(Any Attack STR, then execute New_Town_Reg_D
-if base is ovewhelmed(Function which was called at base being attacked start), then execute New_Town_Hev_D, which would put more emphasis on defense rather than rebuilding a new town.
As you can see, that small tidbit(OIbviousley a bit more in AI Code), would insite the AI to at least try and LIVE. Fight or Flight. A small thinking Ability(Am i overwhelmed? Can i win this fight?), and trying to stay Alive if it was overwhelmed(Start new town, heavy D to fend of any new attacks in its start, etc)
I got off topic? No wait no i didint. Anyway i have no care to end this. But i will say, just think of how much more challenging AI would be if it had more human than computer in it.