Artificial Intelligence. The golden dream of both game designers trying to make the next KillerApp, and megalomaniacs attempting to build a viable Robot Army to TakeOverTheWorld.

Artificial Brilliance is, quite simply, the ability of the computer characters to make the player think "Hey, these guys are actually pretty smart!" It occurs when the A.I.'s freeform actions, based on real-time decisions, result in behavior that seems, frankly, brilliant. It can be anything from an enemy that manages to outwit and outmanuever the player on the player's own terms and by the player's own rules, to an [[NonPlayerCompanion NPC ally]] who manages to assist and even save the player in ways that are unexpectedly helpful and seemingly smart. Just being able to react quickly and enter button combinations flawlessly doesn't count, computers are [[ComputersAreFast naturally good at that]]; in fact, toning down a computer player's inhuman speed can be a facet of Artificial Brilliance.

The polar opposite of ArtificialStupidity, when the A.I. makes unbelievably bad decisions that make the player think it's a complete moron. That doesn't mean Artificial Brilliance and ArtificialStupidity can't overlap, however. No A.I. is perfect, and glaring imperfections and mistakes can be all the more obvious in a game with A.I. that is generally impressively smart.

Of course, it's a balancing act between an AI that is bad at the game and an AI that is too good at the game. The trick is allowing the AI to make human-like mistakes while also allowing it to have human-like brilliance. After all, in a first person shooter, the AI isn't really playing the game in the same way a human does. They don't actually have a mouse/keyboard to manipulate or have to watch a monitor. Thus it's an easy task to make an AI that always knows where you are and can hit you perfectly; it's not so easy to make an AI that can act like it doesn't know where you are and can act like it has reflexes. And as some of the examples below note (see the ''Half-Life'' example about greatest threat), sometimes being smart makes it dumb.

Some games avert the issue by explicitly making the computer play a completely different game thus negating the need for the AI to present the illusion of competence equal to the player. For more discussion on [=AIs=], see UsefulNotes/VideoGameAI.


[[folder:Action Game]]
* ''Franchise/TheLegendOfZelda'' enemies are generally not known for their intelligence. An exception is ''VideoGame/TheLegendOfZeldaTwilightPrincess'''s Darknuts, who will absolutely murder you, especially when they fight in groups. A Darknut with its armor removed is smart enough to hang back behind the fully armored Darknuts, darting in and out to attack. Have fun fighting ''four at once'' in the BonusDungeon. It's a ''significantly'' greater challenge than the actual final boss... unless you stocked up on bomb arrows.
* ''VideoGame/TheLegendOfZeldaBreathOfTheWild'' has very impressive enemy AI; even the mooks will do things like set their weapons on fire to do extra damage, pick up weapons dropped by you or other enemies, throw rocks if nothing is available, and enemies with ranged attacks will routinely hang back and try to shoot you while you deal with everyone else. It really veers into this on the occasions when you're attacked by Moblins while trying to carry a shrine orb: if they don't already have weapons, they'll pick up the orb and try to hit you with it. And also throw other, smaller enemies if any are at hand.

[[folder:Board Game]]
* Computers have gotten really, [[UpToEleven really]] good at chess. Essentially, it is impossible to beat a computer at chess if it is using all of its ability.
* It was believed that it would take a long time for computers to become very good at {{Go}} (the game has a far greater number of possible layouts than TabletopGame/{{Chess}}, so computers can't just use the "perfect lookup" method), but in March 10, 2016, Google's [=AlphaGo=] beat Lee Sedol, a world champion in Go. It is noted, however, that Mr. Sedol had been beaten before this by another chinese player, so he was only a ''former'' champion. It beat the current champion in May of 2017.
* ''Lords of Waterdeep''. The AI on Normal and Hard will exploit the game rules like any RulesLawyer.

[[folder:Card Games]]
* Older ''TabletopGame/YuGiOh'' games relied on psychic AI and other gimmicks to provide any difficulty, as otherwise the AI was very poor. In ''Stardust Accelerator'' and ''Reverse of Arcadia", however, the AI actually takes time to consider the possibility of every possible move and the consequences in order to decide the best action. The AI will take note of things such as what cards will provide better advantage, whether they can subvert the Tribute process for certain cards and monsters, and which ways they can take control of the situation, to name a few.
** In ''VideoGame/YuGiOhReshefOfDestruction'', the AI will use stalling tactics, multiplying monsters, and clever spells and trap cards.
* For Wizard of the Coast's ''VideoGame/MagicTheGathering'' video game Duel of the Planeswalkers the programmers had a very difficult task in programming an AI that could deal with all the rule-changing cards of the game itself (and there are possibly more of them than in any other card game because of Magic's "Golden Rule", which states that the text of a card takes priority over the rest of the rules). Seemingly they succeeded.
** This refers mostly to the ''second'' game by that name and publisher. While the first game's AI was a remarkable achievement for its time, there was no way to provide it with hints on how to play specific decks, rendering a number of monsters crippled in the single-player game (their difficulty was instead balanced though life handicapping and chance of AIRoulette). (It also tended to cast any playable spell as soon as possible, and assume you have no castable spells, a greater weakness given the longer games 5th Edition tended towards.)
* ''VideoGame/PokerNightAtTheInventory'' uses an AI system that not only considers each character's hand, but also factors this in with each character's unique personality and abilities. Thus Tycho and the Heavy will play cautiously and strategically, Strong Bad will usually attempt an overconfident bluff, and Max will play erratically to reflect his short attention span and poor grasp on the rules of the game ([[TheComputerIsACheatingBastard and possibly use his future vision power to cheat]]. Yes, this game even applies that trope in a justified manner.)
* ''VideoGame/PokerNight2'' continues this trend with its new cast, with Ash attempting to make high bets on weak hands in an attempt to get you to fold, Sam playing cautiously and knowing when to fold, Claptrap having the inability to bluff (although him, being non-human, makes him hardest to tell against as well) and Brock plays aggressively due to him playing Poker long enough to know how to bluff and play the game properly.

[[folder:Fighting Game]]
* Many fans of ''VideoGame/SuperSmashBrosBrawl'' have argued that the level 9 AI is capable of learning from human players. Players often point to examples of a certain characters' AI altering their recovery strategy after a human player has repeatedly used this character. Though this has been proven false[[note]]replays in Brawl are text files, not video files, containing a list of all actions the player took and all random outcomes, but no AI actions. The AI plays out a replay match the same way it would a live match. Therefore, the AI cannot change over time, or else the replay files with AI in them would desync over time. Also, more recently, the AI has been decoded and shown that no learning capability exists.[[/note]] [[UrbanLegendOfZelda but the rumor still persists.]]
** The stock AI can also be replaced with more effective AI. Among various projects, one Japanese hacker is working on an Ice Climber AI that never messes up its [[GameBreaker chaingrab infinites]], something that is possible for humans--ie. not a true example of cheating AI--but difficult.
** Crazy Hand in ''Melee'' used the downward vertical punch when the player is hanging onto the edge of the stage. The effect is identical to stomping on somebody's hand in such a situation: an unavoidable fall.
** The adaptive AI may be becoming somewhat of an AscendedFanon with ''Super Smash Bros. for Wii U'' as amiibo figures of the characters will learn when you and other players fight against them in-game. This leads to the ability to teach them certain strategies, typically the ones you use against them a lot. Though people have discovered a slight bit of [[TheComputerIsACheatingBastard cheating]] on the part of the FP, as they level up, they deal increased knockback and gain immunity to knockback. That still doesn't stop them from absolutely kicking your ass with the same techniques you use.
** And it works well. [[GoneHorriblyRight Too well...]] In fact, some can get so good, [[ one amiibo nearly won a tournament.]]
** [[ Some have even established amiibo-only tournaments, like the AFC.]]
---> ''AFC amiibos are skilled in many forms of martial arts, including wavedashing, boost-grabbing, ledge-cancelling, boomerang superjumps and other combat tactics.''
** In ''4'', Master Hand gains a new wind attack that'll push the fighters away from him. He'll try to use it if you happen to be off the platform on the other side of Master Hand in an attempt to hinder your attempts to recover.
* A similar rumor exists for ''VideoGame/SamuraiShodown 5''. The AI on higher difficulties will alter tactics in response to the player.
* ''VideoGame/SonicBattle'': If you just spam a special attack to beat an opponent and they respawn, they'll change the special moves they use- since each player is granted immunity to the type of special attack they aren't using to attack, spamming one type of attack will lead the opponent to swap specials to defend against yours. This also runs in reverse, with the computers changing their specials to get by your immunity.
* The AI in ''VideoGame/FateUnlimitedCodes'' tends to come in two flavors: dumber than a rock, and smart as a human. On harder settings, the difficulty in fighting the computer lies in how they use human tactics, particularly mixups leading into absurdly long (but entirely possible to emulate) combos. This is especially true with Archer, who uses his Unlimited Blade Works chants as cancels to continue his combos. On higher difficulties, expect Archer to get in two separate combos each time he attacks with more than one magic bar.
* Captain Cadaver, a boss in ''VideoGame/MaximoGhostsToGlory'' seems to be just another circular-arena projectile-flinger, but unlike most bosses, he actually calculates where you will be by the time the shot reaches you by measuring how fast you're running. Instead of running in circles like most games, you now must run away in strategic patterns. How unexpected!
* It's used in the later ''{{VideoGame/Tekken}}'' games : use a move too often, and the AI will learn how to counter it and punish you. It especially shows on higher difficulties.
* On harder difficulty levels, the AI in ''StreetFighter'' will use strategies that top players use. For example, AI Seth will mimic Poongko, a top Korean player by doing things such as ticking into Seth's command throw. This has been started in Street Fighter 4.
* Computer-controlled monsters in ''VideoGame/WarOfTheMonsters'' realize that if their health is low, they will slip away to grab all the health in the surrounding area. If it's a two against one match, the healthy fighter will try to keep you distracted so the damaged monster can do so.

[[folder:First Person Shooter]]
* The first fan-made "bots" for ''VideoGame/{{Quake}}'' were a major leap in terms of A.I., being able to imitate the movements and behavior of a player-like character (as opposed to the simplistic "move in a straight line and shoot" enemies of the time).
* ''VideoGame/{{Unreal}}'' was the first FPS game to use "bot-like" A.I. for its single player enemies, leading to the creation of the memorable Skaarj, a video game adversary that could dodge and strafe while firing, jump from platform to platform, intelligently pursue the player throughout the entire level, and otherwise move and behave just like the player character instead of (as was the norm at the time) a simple turret-like enemy wandering aimlessly in semi-random directions while periodically pausing to fire at the player's direction.
** Skaarj would sometimes even retreat, only to lead you into an ambush if you gave chase.
* ''Videogame/UnrealTournament'' took the bot intelligence of ''Unreal'' UpToEleven. Map makers often enjoyed watching 0 player matches with 16 bots to watch them navigate the level path nodes. Even better, it showed the awareness of bots in action - when a bot approached a blind corner or intersection, it would actually ''hunch over'' and ''approach cautiously'', getting itself prepared for a possible sneak attack!
* ''VideoGame/HalfLife1'' is famous for introducing the first "tactically intelligent" A.I. enemies in the form of the HECU Marines. These soldiers operated in squads, provided each other with covering fire, would toss grenades to flush out or kill the player character, and would navigate between obstacles and circle through the level in an attempt to outmanuever the player instead of simply [[LeeroyJenkins charging suicidally at him in a straight line]].
** Brought UpToEleven in it's [[FanRemake remake]] ''VideoGame/BlackMesa''. The soldiers are a ''nightmare'' to fight, using cover, flanking, and covering fire. And unlike in the original, they don't follow a rigorous script to perform their actions, it's all emergent behavior just like in ''F.E.A.R.''.
** The AI of the Combine soldiers in ''VideoGame/HalfLife2'' has been widely criticized for being rather average, uninteresting, and easy to kill. In fact, the Combine A.I. are actually quite impressive, demonstrating such feats as moving in squads, "slicing the pie" around corners, using cover intelligently based on their relative position to the enemy, stacking up, providing and advancing under covering fire, flanking, and using pincer attacks. Unfortunately, they're not really as mobile as they could be, and the tight, linear corridor level design never really gives them a good chance to show off their moves (that, and the fact they die like lemmings because Gordon Freeman [[LightningBruiser is a human tank that can outrun a car]]). [[ This YouTube video]] gives a pretty good representation of the actual capacity of the game's AI.
** Valve specifically searched the ''VideoGame/{{Quake}}'' Mod community (mentioned above) to see who was designing the best bot AI, and hired them.
*** Also, even in the linear setting of most of ''VideoGame/HalfLife2'' the AI does sometimes pull off something clever. Like those horrible times you're cowering from the hail of SMG and pulse rounds, only to see the red streak from that little light on the top of a grenade arc towards you...
** Also, the Combine gunship, which were programmed to shoot at "the greatest threat". It exceeded the dev team's expectations by shooting down incoming missiles, rather than at the player... Leading to the sad case of ArtificialStupidity in which they would never fire at the player as long as a (smarter AND faster) missile was in the air. Any number of gunships could easily be defeated at no risk as long as the player could keep a missile flying in circles until it could hit one from behind, then launch another or find cover immediately. Zig-zagged on higher difficulty levels; when you're up against a duo of Gunships, each of which requires more than half-a-dozen hits to take down, and they keep shooting down your rockets, it gives their ground support ample opportunity to ruin your day.
* Raven Software is well known for pioneering the use of friendly NPC A.I. squads in FPS games, beginning in ''VideoGame/StarTrekEliteForce'' and continuing on in ''VideoGame/SoldierOfFortune 2'' and ''VideoGame/QuakeIV''. Their games often feature friendly A.I. squads of several {{NPC}}s who can follow the player throughout a level and also of holding their own in firefights against waves of enemy [=NPCs=]. They make generous use of GameplayAllyImmortality to avert the frustration that made ''VideoGame/{{Daikatana}}'' the smoldering pile of ruin it is remembered as.
** The friendly A.I.'s ability to follow the player in most Raven games without getting lost or stuck is usually due to the use of strictly linear NoSidepathsNoExplorationNoFreedom levels, but it's still impressive given the time it was made.
* ''[[VideoGame/FirstEncounterAssaultRecon F.E.A.R.]]'' was widely praised for the A.I. of its Replica Soldiers, touted as the best enemy A.I. ever at the time of its release. Enemies would work in squads, provide covering fire for each other, advance under covering fire, fire from behind cover intelligently, and use cover to flank and circle around the player instead of charging straight for him and making themselves an open target in the process. The A.I. also had extremely high mobility allowing it to exploit the battlefield instead of limiting itself to a single small area, and could also dive through windows, vault over objects, and crawl under obstacles, allowing it to access every area of the level the player could.
** The ''F.E.A.R.'' A.I. is actually a good example of emergent behavior, which is complex behavior stemming from simple rules. Specifically, the A.I. is programmed for a limited number of simple behaviors: moving in coordinated squads, providing covering fire, seeking cover, and repositioning itself based on the player's movement and position. The A.I. isn't actually programmed to flank or circle behind the player, but its tendency to seek cover and reposition itself based on the player's movements results in flanking and circling behaviors occurring naturally without "conscious" effort on the A.I.'s part (mostly due to the A.I.'s high mobility combined with its preference for seeking lateral cover rather than charging the player directly).
** The level design. The levels were designed to help facilitate the AI in action. You will find that there's generally two ways to get to any position thus always allowing the AI to find a path. This also gives the player the impression that levels are bigger than they are so it was a win-win.
* ''VideoGame/{{STALKER}}: Shadow of Chernobyl'' features a complex Artificial Life ecosystem featuring both wildlife and human {{NPC}}s. It has an entire ecosystem of monsters that live in packs, defend their territory, and migrate from area to area. It also features humans that live out their own lives independent of the player's actions; exploring, traveling from map to map, resting at friendly camps between forays through hostile territory, scavenging loot, and getting into fights with the Zone's other inhabitants. Tactically, the combat AI is pretty damn good, too: enemies flank, use cover, retreat, dodge behind and through obstacles and buildings, and are pretty good at navigating the game's wide-open levels. Its AchillesHeel is its inability to recognize environmental hazards such as anomalies or campfires. [[WhatCouldHaveBeen If the press on the pre-release preview versions is to be believed]], the AI was even perfectly capable of ''beating the game itself''.\\
Naturally, with the series having the [[GameMod modding]] community that it has, there are several mods that restore this astounding AI, and in some cases, refine it so that it achieves feats like enemy stalkers shutting off their flashlights and walking back-to-back if they suspect they're being targeted. As one might expect from this description, playing the game with those mods installed is [[NintendoHard a masochist's wet dream]].
* ''Franchise/{{Halo}}'':
** The enemy AI for the games' Legendary difficulty level is notoriously brutal, but still holds back in order to provide a reasonably playable game. ''VideoGame/{{Halo 2}}''[='s=] "That's Just... Wrong" [[EasterEgg Skull]] (named "Whuppopotamus" in the game files) corrects this, allowing enemies to discern the wibbly outline of a cloaked foe, hear guns reloading, and generally behave as though they were capable human players. Meep. This is exacerbated by the ArtificialStupidity of the friendly AI.
** ''VideoGame/HaloReach'''s Legendary veered into TheComputerIsACheatingBastard, with things like enemies that track and home in on the player the second they stick their nose out, especially when their shields are down. They also fight like you do (or at least should); making ample use of cover, quickly diving away from enemy fire, engaging Armor Lock if they have it when the situation is becoming literally explosive, etc. In contrast, the friendly AI stay straight in ArtificialStupidity territory.
* With after-release patches and updates in ''VideoGame/Left4Dead'', the special infected have become a little smarter when it comes to attacking the survivors and dealing with fire. Boomers and Hunters will usually wait around a corner and then strike once someone is in their range. If a survivor is close enough, the Boomer, Smoker and Hunter will usually attack by slashing rather than vomit or pounce them. Tanks are also smarter when it comes to fire; if there is a way around the fire, the Tank will usually take it.
** ''VideoGame/Left4Dead2'' upgrades the Tank's intelligence even more. In the first game, if the Tank knocks someone down, it will stand over the survivor and pound them, totally ignoring the other humans blasting it to death. The Tank in ''2'' will usually ignore the downed survivor and run after the others, just like what someone would do if they controlled the Tank in VS mode, since all that's necessary for a GameOver is for the survivors to be all incapped, but not necessarily dead. All the other special infected have also smartened up where now they will tag team you if given the chance.
** Additionally, if a player throws a molotov, hunter bots will ''intentionally'' light themselves on fire, [[InfernalRetaliation then pounce, dealing extra damage]]. Smoker bots will try to drag players through flames or Spitter acid. Jockeys will actively try to steer you into those as well, and if there's a Witch nearby, the Jockey will gleefully steer you into her.
** Survivor bots aren't half bad with the right [[GameMod mods]] either. They're more mindful of their healing supplies instead of squandering pills when they're at 96 HP, can tell clear paths better instead of getting stuck and waiting for player-focused teleportation, have a better group mentality that includes helping a comrade just as soon as they're endangered instead of moving off after healthier ones, and if the mod is particularly intrincate, they'll use throwables (bile jars, molotovs and pipe bombs) surprisingly strategically, like diverting hordes or prioritizing the most dangerous Special Infected. They also will run past Witches instead of walking slowly past and only aggravating them further.
* ''[[VideoGame/{{Turok}} Turok 2: Seeds of Evil]]'' had the Endtrail enemy, which use cover whenever possible, move around to make itself harder to target, chase you a bit and use hit & run tactics. The other enemies of the game weren't so bright, however.
* The AI for the offline mode for ''VideoGame/TeamFortress2'' has its periods of [[ArtificialStupidity fail]] from time to time, but at least it knows that when on defense, spam [[MacrossMissileMassacre Soldiers]] and [[StuffBlowingUp Demomen]].
** The Bot AI has gotten remarkably better in recent months. Engineers will check suspicious behavior around their buildings, and snipers will now be smart enough to back off while firing their SMG instead of charging enemies. If spies are spotted, expect a thorough round of spychecking from the bots. Medics will also wait until their patient is incurring damage to engage an ubercharge, and scouts will know to use their pistols to take out sentry guns outside their effective range. Bot Pyros are also quite good with using the airblast secondary attack on their flamethrowers to clear points and reflect projectiles.
*** Valve even went out of their way to avert TheComputerIsACheatingBastard by doing such things as giving the bots a virtual "mouse". This prevents them from autocentering their view and forces them to manually aim their shots the same way a player would.
** Say what you will about Mann Vs. Machine mode, one thing that almost everyone can admit is that those robot Spies are ''good''. They can spawn in non-standard areas, move remarkably similar to players, and, once discovered, will fight tooth and nail until it sees a chance to get away. Made worse by them [[ComputersAreFast having reflexes you could only dream about]], as well as their ability to [[HitboxDissonance facestab you]] [[FakeDifficulty with alarming regularity]].
*** Let a wave of bots too close to your spawn in Mann Vs. Machine will also result in you being spawn camped just as if you were facing human opponents -- they'll fire explosives at the doors while they're still closed (on the off chance that you walk right into the crossfire) and have some expendable point men stand there as a blind/distraction.
* ''VideoGame/StarWarsRepublicCommando'' was notable for having exceedingly good party AI. If you told one to take up a sniping position, they ''would'' get there unless there was a positively absurd amount of stuff in their way and no intermediate cover, and would last quite long in such a position without assistance. If you got shot down (which at times happened frequently), your team would either cover each other as they attempted to heal you, or set up a proper defense and wait out the threat depending on your orders.
* The Stalker from ''VideoGame/DeadSpace2'' is designed to behave similarly to the velociraptors from Jurassic Park, meaning they will attempt to flank the player while another peeks around cover within your field of view in order to distract you. They can be [[DemonicSpiders very effective]].
* The first time you play ''VideoGame/{{BioShock|1}}'', you will be amazed at how eerily realistic the splicers act.
** In one example, if you set a splicer on fire and there is a pool of water nearby, they will jump into the water to put it out. They will also break off combat in order to go use a healing station if one is in the area, just as the player no doubt does. Of course, if you anticipate these behaviors, you can exploit them to lead the splicers into traps.
* ''VideoGame/{{Crysis}}'' and ''Crysis 2'' may have their occasional hiccups, but the enemy AI in both games shows impressive levels of intelligence. Enemies will suppress you and flank your position, call in reinforcements and sweep the area for you if you try to hide. In Crysis 2, a highly alert enemy will notice a cloaked player if they are close enough (though by then, it is typically too late) and they will throw grenades at your last known position, or where they think you may have gone. Enemy troops will even track what direction you're going in; if you run toward cover while the enemy can see you, cloak, and then change direction, the enemy will continue firing along your original path and try to suppress the general area it thinks you were running toward.
* ''VideoGame/CommandAndConquerRenegade'' does not have the most stellar AI for most of the normal troops you fight. However, stealth troopers have actually been observed ''stalking'' the player and ambushing when you least expect it. Also, Nod troops who do not have any other valid targets in sight will immediately shift their attention to any abandoned but operational GDI vehicles they can find to deny them to the player.
* ''VideoGame/PerfectDark Zero'''s enemy AI, despite being a first-generation 360 title, is quite smart on Perfect and Dark Agent difficulties, with enemies constantly dodging and strafing, relentlessly pursuing and flanking the player in groups, hitting and running, and laying suppressing fire while moving in for the kill.
* ''VideoGame/{{Descent}} 2'' has the thiefbot, which, for 1996, had extremely effective AI. It would use ambush and hit-and-run tactics to steal the player's power-ups and then flee, dodging the player's fire and leading him into rooms filled with other enemies, making it even more difficult to destroy. It would also chirp obnoxiously to taunt the player and drive him into suicidal charges to kill that bastard.
* ''VideoGame/{{Doom 2016}}'', surprisingly enough, has some genuinely fantastic enemy AI; particularly with the Imps. While it's a set routine that any demon in the game can go anywhere the player can (to discourage picking a spot and hiding there), the Imps in particular can climb on almost any surface, hang on it, and throw fireballs at you with startling accuracy. They can also throw fireballs at you while running (also with quite surprising accuracy), lead their shots, and will not only try to back away to find a better position, they also have a tendency of rushing the sides of the player while he/she is focused on fighting other enemies not entirely unlike a certain [[Film/JurassicPark prehistoric hunter]].

[[folder:Flight Simulation Game]]
* While ''VideoGame/AceCombat'''s AI isn't known to be the smartest, more recent games have demonstrated better AI abilities, such as better response from teammates to orders ([[VideoGame/AceCombatZeroTheBelkanWar Pixy]], for example, behaves much better than the rest of [[VideoGame/AceCombat5TheUnsungWar Wardog Squadron]] combined, to say nothing of [[VideoGame/AceCombat6FiresOfLiberation Shamrock]]). A very good example of better enemy AI is in ''Zero'', where AcePilot squadrons that come in several missions will constantly flank you and keep your wingman busy while they move in for the kill. They move so well-coordinated that one reviewer notes that "They put the [[ThatOneBoss Yellow Squadron]] (of ''VideoGame/{{Ace Combat 04|ShatteredSkies}}'') to shame." Notably, the Ace squadrons almost always outnumber you 2 to 1, and they use their numbers to their advantage. One plane might act as bait while another tries to shoot you down, and in particularly annoying furballs, ''three'' planes will come after you while the fourth keeps your wingman busy. The one squadron that doesn't outnumber you (Gelb, which only has two planes, as do you) is in vastly superior planes to what you're normally flying at that point in the game.

[[folder:Four X]]
* ''VideoGame/GalacticCivilizations'' is known for this:
** A few examples of the AI's forward thinking:
*** The AI will pay attention to what kind of weapons you're researching and using on your warships. If it thinks war is likely between you and itself, it will start building counters to your weapons and defenses.
*** The AI will interpret a build-up of military forces, especially Troop Transports, in its territory as a hostile action, even if war hasn't been declared. It won't take action immediately (it's possible your army is just passing through the AI's territory on its way to someone else), but political tension will rise while you're in their area.
*** If you have a history of making war, the AI will categorically refuse to sell you technology useful in war, specifically citing your conquering tendencies as the reason.
*** If you try to screw the AI over in trade negotiations (for example, offering comically low prices for its stuff), not only will it refuse the trade, but it will also interpret this as an insult and this will affect your standing with it.
*** By the third game, the AI has finally learned what "culture-bombing" is, and it will recognize attempts by you to do so. It will also warn you (if you're its ally) if it thinks another civ is attempting this.
** Back in the first Galciv, one of the people who wrote the A.I. was repeatedly curbstomped by his own creation.
** It's telling that the "Normal" difficulty setting has the AI's economy working at reduced power, with the mechanically equal setting known as "Tough".
* Galciv's spiritual predecessor, ''VideoGame/MasterOfOrion'', also has some very clever AI. The [[HarderThanHard Impossible difficulty]] really earns its name.
* ''VideoGame/SwordOfTheStars'' AI can recognise your weapon loadouts and adapt by using the appropriate counters.
** The battle AI leaves something to be desired, though. Enemy ships armed with only ballistic and missile weapons will keep hammering away at your deflectors, which cover only the front of your ship, even though they have no chance at penetrating the shield, instead of flanking. Ditto for energy-armed enemies against disruptors. In fact, the battles boil down to "get close to the enemy and keep firing until either side is dead". Retreat is not an option, unless the ship in question is not a strict military vessel.
*** The AI will also never explicitly target your ships' turrets or specific sections. It'll fire at whatever's closest. This gives the player doing this an advantage.
* ''VideoGame/{{X}}-Universe'' series:
** Rapid-response fleets in ''[[VideoGame/{{X}} X3: Albion Prelude]]'' jump around the universe on their own to respond to threats to their faction. They'll also [[HyperspeedEscape emergency jump out]] on their own if they take too much damage.
** The ''MARS'' GameMod for ''X3: Terran Conflict'' and ''Albion Prelude'' adds an advanced gunnery and command suite to your ships that mount the Motion Analysis Relay System. MARS will intelligently select certain weapons that have an estimated probability to hit a target for a certain damage; for example, it may elect to blast them apart with a massive Photon Pulse Cannon with a 75% hit chance than a low-damage Flak Artillery Array with a 95% chance. It also adds in 'Goblins', which are bog-standard {{Attack Drone}}s, but augmented by a central control unit. Goblins are automatically controlled and will intercept incoming missiles either with their gun or by plowing into it, provide a screen for your BoardingParty, can harass enemies to distract them, tow abandoned ships towards you for recovery, pick up abandoned cargo and munitions, and will gleefully exclaim "For the master!" when executing orders.
** The seventh game, ''VideoGame/XRebirth'', completely redesigns the pathfinding algorithms to avoid what ''X'' fans fondly refer to as the auto-pillock, allowing ships to smoothly navigate the claustrophobic city-like space station without the janky "fly around aimlessly until the path looks ''kinda'' clear" AI previous games had.

[[folder:Game Shows]]
* Most recently, IBM took another shot at human vs. computer, with Watson starring on ''Series/{{Jeopardy}}''. The machine can answer the questions almost as well as a good human player, and (more importantly) its [[ComputersAreFast perfect timing on the buzzer]] gives it a nigh-unbeatable advantage. It beat the two highest-ranked human champions [[CurbStompBattle by a three-to-one margin]].
** In doing so, however, Watson exposed the ''limits'' of his brilliance more than once, giving wrong answers that no human would guess.
*** In an instantly classic moment, a Final Jeopardy! question in the category of "U.S. Airports" wanted to know the city with two airports, one named after a World War II hero and one named after a World War II battle. The answer was Chicago, but Watson answered with [[ "What is Toronto?????"]], prompting much hilarity about how apparently Toronto had been annexed with nobody noticing. This was caused by a slight oversight in Watson's programming that intentionally undervalued the category name since the category doesn't always have much to do with finding the answer. Since the clue didn't mention a country, Watson didn't rule Canadian cities out of its answer. In addition, according to the developers it didn't really understand the question (it didn't get the connection between World War II and airports)... so it guessed (as indicated by the five question marks).
*** In the "Literary APB" category, the clue wanted to know the person responsible for the murder of Severus Snape -- "he'd be easier to find if we could just name him!" Watson didn't know and didn't buzz in. His top three choices were Harry Potter, Albus Dumbledore, and Voldemort. Watson had very obviously figured out that the answer had something to do with the Harry Potter franchise, but didn't understand that the category was exclusively villains (being unable to make the link that [=APBs=] are only issued for criminals), and couldn't catch the allusion to He-Who-Must-Not-Be-Named.
*** In a practice test, Watson answered that the most popular [=non-dairy=] creamer was milk.
** In ShockingSwerve, Watson was defeated shortly thereafter... by a Congressman. [[ Rep. Holt (D-NJ)]] to be precise.

* The "It's Thinking" advertising for the Dreamcast was all about this (in theory). For a football game the ad would say e.g. "It knows you like to go for it when it's 4th and goal. It's thinking".
* A non-video game example: In the climax of ''The Two Towers'', the enemy Orcs were programed to make the best tactical decisions possible against the tree-folk, but the programmers forgot to put an important piece of intelligence into the AI, causing the virtual actors would start running when no enemy was present in front of them instead of looking around. This resulted in the Orcs looking [[ScrewThisImOuttaHere uncharacteristically pragmatic about their chances in battle]].
* Some web apps are getting very clever at interpretation. One person made a Facebook update consisting solely of the phrase "Gorram Reavers", and FB grouped it in with a bunch of friends' comments talking about ''Series/{{Firefly}}''.
* Google for something like [[Film/{{Memento}} "that film that runs backwards"]] or [[Film/ChildrenOfMen "that film with no babies"]]. Or input your search in one language while asking for results in a second language. It'll often come up with results for the translation of the search in the second language, even if you input proper names! For example, [[ searching Japanese pages for "Nintendo"]] will display results with the kanji ''and'' katakana for the company name in bold.\\\
Google's search algorithms are also capable of cross referencing terms with synonyms and expanding acronyms with some contextual awareness. For example, searching [[ drinking caffeine before bed]] includes terms like coffee, bed time, and sleep. Searching for, say, the UsefulNotes/PlayStation4's BOM will pull up the bill of materials.

[[folder:Maze Game]]
* ''VideoGame/PacMan'' is perhaps the earliest example of "smart" A.I. in a video game, as each of the four ghosts was programmed with a specific "personality" and navigating/tracking style that allowed them to make decisions on how to pursue the player character, rather than simply moving at random or in a more or less straight line. The aggressive Blinky was programmed to chase Pac-Man, the cunning Pinky was programmed to corner Pac-Man (by heading toward a spot a few steps ahead of him), the wired Inky was programmed to follow Blinky and try to aid, and the scared-witted Clyde was programmed to run away when he got close to Pac-Man. Ms. Pac-Man made the ghosts move randomly for the first 7 seconds so that players couldn't learn and re-use an optimal path. More [[ here]].

[[folder:Mecha Game]]
* AI behavior in ''VideoGame/ArmoredCore'' isn't the best, granted, but in Silent Line, you are able to train an AI pilot of your own. The AI starts out very stupidly, but as you pilot the AI's assigned mech, the AI starts emulating your combat behavior, both good and bad. With enough practice, the AI would even be able to accurately aim rockets, something that even the best human players have difficulty to do. The AI opponents in the Arena also improve with repeated combat exposure.

* ''VideoGame/WorldOfWarcraft'' generally has fairly limited AI opponents with only a handful of abilities. The encounter commonly referred to as Faction Champions in the Argent Coliseum, however, is quite impressive - it's meant to mimic a huge PvP battle, as each enemy has access to most of the spells you'd expect a player of the same class and specialization to use, the healers are quick to remove status effects and heal injured comrades, and the group will often gang up on one player and then switch to a completely different one.
** And [[OlderThanTheyThink before the Argent Coliseum]], we had [[ThatOneBoss Princess Delrissa's party]] in Magister's Terrace, and the Tier 0.5 arena battle in Blackrock Depths.
* ''VideoGame/GuildWars'' still does have some obvious flaws with the AI, namely that they'll attack enemies rather than trying to run away from them, and that the heroes often need you to tell them how to use the more complex builds, but the specs they ''do'' have, they ''know'' how to use. It also helps that if you ping a target, they immediately focus fire whereas all that does to players is say "Attack here".
** Still even some individual behaviours are nice - Herta uses the Ebon Hawk-Stoning combo, the interrupt/domination henchmen are actually ''really'' good at interrupting (helps they have godlike reflexes), MinionMaster heroes will actually ''heal'' their minions if you have them use something like Karei's Healing Circle or Heal Area, etc.
* ''VideoGame/EVEOnline'' has introduced an AI package called the "Sleeper AI" in March, 2009, which is specifically designed to allow special "Sleeper" NPC ships to combat player ships toe to toe at similar numbers and ship classes. NPC ships with Sleeper AI execute agile maneuvers to avoid turret fire, remotely repair friendly ships that are the most damaged (a practice called "Spider Tanking"), and most importantly, switch targets according to the threat level of each enemy ship at semi-random intervals. The threat level is calculated dynamically based on the target's firepower, total hit points, repairing capabilities and special abilities such as electronic warfare or remote repairing capabilities. The end result is a group of NPC foes that can emulate human behaviors in fleet warfare and blowing up unprepared foes into smithereens, and such foes take a lot more preparation to defeat than mooks without Sleeper AI. Fortunately, the use of Sleeper AI is resource intensive to the server, so regular NPC Pirates("Rats") are still nothing better than piñatas.
** A refined version of Sleeper AI package is currently being used by the Sansha's Nation incursion fleets, and is introduced in the eponymous "Incursion" expansion in Jan. 2011. On top of the features provided by the Sleeper AI, the Sansha's incursion ships are equipped with specialized behavioral rules base on ship classes and roles (stealth bombers targeting larger ships for torpedoes, electronic warfare ships pinning down smaller support ships, battleships focusing fire on single targets, etc). As many regular combat mission runners severely underestimated the competence of Sansha's incursion fleet and ran into them unprepared, the galaxy map with the "Ships Destroyed within 24 Hours" filter lit up like a christmas tree for more than a month, making the developers, and especially the in-house economist, ''very, very'' happy.
** And now, all [=NPCs=] have "sleeper" AI.

[[folder:Puzzle Game]]
* One of the most notorious puzzles in ''VideoGame/TheSeventhGuest'' is the Microscope puzzle, where you have to face off against Stauf himself in a game of cellular Reversi. It's already hard enough when Stauf goes after the player, and can screw up any move the player pulls off. What makes this maddening is that Stauf's intelligence is tied to your processor speed, so the faster your processor is, the more moves Stauf can predict, and the harder he'll be to defeat. Back in the days of Windows 3.1, this puzzle may yet have been beatable, but on today's quad-core processors, it's essentially impossible.
* This is the reason ''VideoGame/PuzzleQuest'' has such a notorious reputation for cheating. As the plot progresses, enemies make fewer and fewer "mistakes" such as leaving potential skull clears on the screen for you to use. Except for the training dummy (which simply doesn't have turns), the computer never misses 4 in a rows and knows how to set them up for optimal follow-ups. Combined with observation bias and some less than perfect playing on the human's part, and it seems to be cheating.

[[folder:Racing Games]]
* The AI in ''VideoGame/{{Forza}} Motorsport 4'' will adjust their behavior based on how you drive. What this means is that if you drive like it's a demolition derby, they will smash into you just as often as you try to smash into them. ''Motorsport 3'' and ''Motorsport 4'' have the "Pressure" system - if you ride on the ass of an AI player, the AI will be pressured into braking later and later in order to try to pull ahead of you. Keep on them long enough, and they will usually eventually miss the braking point entirely and go flying off the track.
* ''VideoGame/MarioKart'':
** In ''VideoGame/MarioKartDS'', the AI actually seems to know that if you put a banana peel on the loop-the-loop, HilarityEnsues.
** ''VideoGame/MarioKart7'' upgrades the AI's tactics with items. Now they will usually drag items behind them for a while (shells, banana peels, etc.) before using them so that players can't make them crash with their own items too easily. Should you get in the line of sight of an AI racer? They won't hesitate to use their items on you. The AI has improved so much they can even use shortcuts if they have the item needed to access it.
* The AI traffic in ''VideoGame/TestDrive: Unlimited'' realistically follows traffic laws, uses turn signals, and [[ZigZaggingTrope has fender-benders.]]

[[folder:Real Time Strategy]]
* ''VideoGame/AIWarFleetCommand'', a seemingly innocuous indie 2D space RTS made by a single person. But that doesn't stop the AI from actually understanding flanking tactics, creating distractions for the human player, utilizing hit and run warfare...
* Despite how stupid the AI Bots are in ''VideoGame/LeagueOfLegends'', there's some Artificial Brilliance in there, too. Players may not be quite aware that if you try to finish off a retreating champion by a turret, it'll stop shooting at Minions and start firing at ''you''. Bots ''know'' this, and if a turret ever starts firing on them, most of the time they start hightailing it out of there. If you blind or silence them, [[ComputersAreFast they run]]. The bots will try to goad you into attacking them when they're next to a turret - and if Shen bot is running over to you while you're attacking a turret, the best thing to do is ''get out'', because he ''will'' taunt you and cause the turret to start shooting you instead. They know the rules.
** Ryze, Annie, and Trundle bot go positive. Trundle is able to put his obstacle in the ''absolute WORST'' location possible, whereas players will often mess up. Ryze Bot will often harass you with Rune Prison (sometimes ''right next to a turret''), and Annie bot is well aware that her passive gives every fifth spell a stun. You'll notice that she'll sometimes use her Disintegrate to last-hit minions...however there is a visual warning that says her stun is ready. Immediately, she stops last-hitting minions with Disintegrate and starts to go ''right'' for you. She even knows the oldest trick in the book when it comes to Annie - saving her stun and using it when she summons Tibbers.
** The bots still suck in the end unless you are a complete dummy. What is more interesting is the behaviour of Quinn's abilities. Her Harrier marks random targets for bonus damage, but is biased to "help" you in combat by marking the "correct" targets. It does a very good job most of the time, marking an enemy champion just as you start moving in their direction. Also, Vault places you closer when you are chasing and farther away when you are trying to escape; it isn't clear how it tells the difference, but it does.
* In comparison, ''[[VideoGame/Dota2 Dota2]]'' has some ''brutally'' effective bots, who play ''extremely'' similar to players. They'll do everything they can to deny you farm, roam if they're ahead, and can often get the best of even experienced players who aren't either abusing the loopholes in their programming or on guard. [[ArtificialStupidity they do have a tendency to clump very heavily however]], making area-damage heroes like [[SuperStrength Sven]], [[BlackMage Invoker]], and [[TeleportSpam Ember Spirit]] well suited to wiping them out.
* ''VideoGame/CommandAndConquerTiberiumWars'': Has a variety of differing AI "Personalities" which utilize varying styles of play. The Balanced AI is just a generic AI, but the rest are ''far'' more devious and actually play like genuine human players. The Rusher [[AttackAttackAttack flat-out bum rushes you]] with ''all'' available resources on cost-effective early game units, leading to a quick and brutal defeat if you don't see it coming, but doesn't have a backup plan, having put everything into their main attack. The Guerilla makes devious flanking maneuvers to outright capture your base from under you, making ''long'' looping paths often timing a ''second'' frontal attack to distract you, but, like a player, their over-focus on microing their flanking attacks leaves little time to work on expanding their base. The Turtler [[OhCrap plays exactly like a canny comp-stomper]], building up a ''huge'' army while turtling to sweep the battlefield in one go, and probably the worst of all, is the Steamroller. A steamroller uses a constant barrage of cheap, light units to keep you on the defensive and to give them constant vision of your forces, which they'll use to build a large main army explicitly designed to counter yours.
* The AI in the original ''VideoGame/SupremeCommander'' and its expansion Forged Alliance is far from perfect, and in fact often actively cripples its own chances of success, but higher levels are excellent at early-game harassment and have nearly perfect base layout and economy management. The true brilliance, however, is that the Adaptive AI will occasionally emulate player tactics it has observed to be effective, and will use them against the player.
* The A.I. in XIII Century was most of the time brutally efficient. If the player divides his forces to attack from two fronts an enemy entrenched in a well fortified position, the A.I. will sometimes wait then charge one of the two groups while the other is too far away to provide support in time. This, in addition to the fact the A.I. always has more and better troops, in addition to usually having an extremely good defensive position, made this game extremely difficult, even on the easiest difficulty setting.
* ''VideoGame/StarCraftII'' - Blizzard had originally described the AI in Wings Of Liberty as 'revolutionary', claiming that it would challenge even the best of players. In reality, below "Insane" difficulty the AI was easy to counter, and could be easily manipulated. The difficulty was added via allowing the AI to build faster, with less resources, until it got to the point where the Insane AI would simply have full map vision, and hard counter you with a quick timing attack. Cue Heart Of The Swarm: The AI on all difficulties TookALevelInBadass. The ability to specify AI builds (economic focuses, timing attacks, ZergRush, etc, was added into the game. Suddenly the AI is planning to expand across a map to starve you of resources, making full tech switches to hard counter your compositions, and generally providing a very good resource for new players to learn to adapt to the game. The Insane difficulty is still [[ComputerIsACheatingBastard cheater]] (and is labelled as such) but is generally much more challenging an opponent, very capable of elevating newcomers to the level they need to compete on Ladder.
* In contrast to Eye-Ra of ''Backyard Monsters'' who will attack the first wall they see, negating much of their niche to blow hole into the enemy's building, Wall Breakers from ''VideoGame/ClashOfClans'' are not fooled by such decoys. They will instead seek the wall that is fully surrounding a valuable building such a Towers or Storages ignoring any decoys or spikes in its way.
* ''Kohan: Immortal Sovereigns'' had the best AI of any real-time strategy game, partly because of the game's slow pace. (Some gamers even think of it as a real-time wargame.) How intelligent was the AI? It knew where the FogOfWar was and would exploit it to get as close to the opponent as possible without detection. In addition, AI teammates co-ordinated really well. More than one player would suddenly find two massive armies sitting outside their capital before they got pounded on two sides.

* This is the point of the short roguelike ''Smart Kobold''. Your character's a nigh-indestructible melee-fighting death machine (i.e. a typical late-game player character) with no ranged attacks, so the second you set foot in their caves, they grab all their weaponry, valuables, and babies, and start running (setting traps as they go) into a large room from which they can easily snipe you to death. If you somehow manage to corner one of their mages or archers, there's a good chance he'll snap his wand or bow in half to deprive you of the ranged attack you'll need to win. Furthermore, even when you ''do'' get a ranged attack, they'll do their best to stay at maximum range - or in the "blind spot" between the eight directions you can shoot in, like ''VideoGame/NetHack'''s unicorns.

[[folder:Role Playing Game]]
* In ''VideoGame/CrisisCore: VideoGame/FinalFantasyVII'' you will find yourself frustrated by enemies who chain their attacks such that there's almost no time to dodge, or that rolling to dodge one attack leads to Zack entering recovery frames in time for another to land.
* This is why your party members are useful in ''VideoGame/FinalFantasyXIII''. Synergists remove debuffs and prioritize buffs that are more effective against whatever you're fighting. Ravagers focus on whatever a Commando's doing and try to help him/her out, focusing chain attacks or spamming area-of-effect spells. Saboteurs focus on [[StandardStatusEffects debuffs]] the enemy is weak to, [[StatusBuffDispel remove]] enemy [[StatusBuff Status Buffs]] efficiently, and prioritize based on what everybody else is doing. Medics remove debuffs quickly and select spells based on how injuries are distributed. Synergists prioritize the most helpful buffs for the situation. Sentinels are really effective at drawing and surviving enemy attacks.
** In addition, they act in the way an actual human will. Against an unfamiliar monster, they ''will'' use ineffective elements or debuffs simply to test things out; once they figure out that those moves don't work, they'll switch to something else. Should the player character use [[EnemyScan Libra]], they'll instantly stop doing that and only use moves that will work.
** The top priority for an AI Synergist? Haste themselves. They'll also focus offensive buffs on whatever party members are currently in offensive roles, and prioritize Commandos over Ravagers when applying En-element effects.
** AI Synergists will use their buff spells to cancel out debuffs on allies. Conversely, if Lightning or Snow (neither of whom have access to Dispel) are in the Saboteur role, they'll use their debuff spells to cancel out enemy buffs.
** AI Medics will cast Cure spells one at a time if everyone's at high HP. While it's less efficient than a full chain of Cure spells, this avoids wasting ATB from overhealing and keeps the Medic ready to cast a full stock of Cure spells quickly in case someone's HP suddenly drops to critical levels.
** The AI also utilizes some more esoteric quirks of the battle system. For example, AI Ravagers will sometimes alternate between physical and magical attacks, as while this hits slower than a full physical or magical combo, it raises the chain gauge faster. While they primarily focus on hitting elemental weaknesses, they'll throw in Aero or -ra spells to attempt to launch staggered targets.
** Enemies also exhibit this. [[{{Mooks}} PSICOM]] compensates for their lack of sheer power with effective cooperation, and have the annoying tendencies of focusing their fire, [[StatusBuff buffing each other]], and [[StatusBuffDispel removing your buffs]].
* Some CPU opponents in ''Franchise/{{Pokemon}}'' are actually like this when they're not [[TooDumbToLive committing suicide]] or [[TheComputerIsACheatingBastard cheating]]. They ''know'' what type your Pokemon is, and if it has a weakness, especially a ''double'' weakness, they ''will'' exploit it just like a player would. (Oh, sending out a Vespiquen on me? Eat Power Gem! Think that Torterra is so hot against my Luxray, huh? It may be immune to Thunder Fang, but it's not immune to ''Ice Fang''!) And some trainers/Pokemon are even smart enough to exploit moves that benefit under a certain environmental condition, which is why Groudon and Kyogre have Solarbeam and Thunder, respectively. And in Generation IV and above, they have begun to think about you trying to use the most common weakness - Trying to use Water, Rock, or Ground Pokemon against Flint's Fire Pokemon? Well you better get them down ''fast'', because if you don't, they're going to use the Sunny Day + Solar Beam combo until you cede defeat.
** In the Fifth generation, some trainers (especially Ace Trainers and your Rivals) will even set up specific move combos more commonly found in [[{{Metagame}} Metagaming]] competitive circles, like [[HPToOne Endeavor]]-[[ScratchDamage Quick Attack]] and Mean Look-Curse (Ghost-type).
** Ghetsis' move pool on his Hydreigon would count as this, but surely was designed this way. Instead he uses his AI to oneshot your team with the right type attack.
** Not only that, they use smart responses to your moves. For example, they'll stop using attack moves if you start using Bide.
** However, ''VideoGame/PokemonBlack2AndWhite2'' seem to have averted this and dumb down the trainers again, as they have a tendency to use attacks that aren't very effective commonly. Repeatedly. Including attacks that your Pokémon 4x resist. Even on Challenge Mode, which is reported to increase the AI of opposing trainers. In this game, Veterans, Ace Trainers and important battles are really the only ones that seriously try.
** Much less obvious, as overlevelling is easy in this game, but ''VideoGame/PokemonXAndY'' still keep this with some important trainers. For example, there's a good chance that Clemont will send his Emolga first, Volt Switch with Heliolisk and Grass Knot your Ground-type Pokemon. And the Elite Four still uses movepools, set-ups and dual-typings to keep you from relying on just a single Pokemon.
*** Trainers in the Battle Maison sometimes employ sets and strategies common in the Pokemon {{metagame}} - Sure, the opponent will still [[ThatOneAttack annoyingly spam Protect]], but ''this'' time it's not AIRoulette but rather as part of a larger [=SubSeeding=] strategy.
** The Totem Pokémon in ''VideoGame/PokemonSunAndMoon'' are very clever with the Pokémon they summon to the field. They often summon a Pokémon that has an advantage over their most common weakness (like Totem Kommo-o summoning a Scizor to counter its quadruple weakness to Fairy), complements their abilities (Totem Wishiwashi summoning an Alomomola with Heal Pulse to keep it in school form) or move sets (Totem Lurantis summons a Castform that knows Sunny Day to boost the healing power of Synthesis and let it get off the normally two turn Solar Blade in one turn).
** The Battle Tree opponents have FINNALLY learnt to switch their pokemon around when they have no attacks that will deal at least neutral damage. They still try to spam boosting moves before realizing it won't work, and they still fail to catch on against your own strategies, like when you use two-turn attacks like Fly and Bounce and they have Protect, but it's a good start. They even make use mega pokemon and Z-moves right away when they need them!
* The final boss of ''[[VideoGame/LunarTheSilverStar Lunar Silver Star Harmony]]'' is a ''nightmare'' because of this. Good luck keeping Jessica alive, because he knows to ShootTheMedicFirst, for one.
* ''VideoGame/GoldenSunDarkDawn'' shows a case of this with the [[ThatOneBoss Ancient Devil's]] [[ThatOneAttack Demon Sign]]. He is capable of judging which of your members is most damaging to him either by pure damage, healing potential or some combination thereof, and [[BrainwashedAndCrazy control]] that character, [[NonLethalKO provided they're on the front line and conscious]]. His number-one target for Demon Sign is [[GameBreaker Sveta]], but even [[TierInducedScrappy Rief and Himi]] are shockingly effective under his control. Once under his thrall, your Adepts will heal and buff the Ancient Devil and summon against you using your own standby Djinn, stopping any summons you have set to go off that round, as well as attacking you with the weapons and Psynergy you so kindly optimized for them.
** Previous installments also have a good chunk of this. Enemies with elemental attacks will automatically target someone whose default element is [[ElementalRockPaperScissors weak to theirs]], with predictable results. Don't bother buffing against anyone from the Mars Clan, they all know to respond with Break, and several have debuffs of their own. Enemies that can use healing powers or items will pay as much attention to their allies' health as to their own. Enemies with status-inflicting attacks will aim for characters relying most on whatever gets crippled (Psynergy Seal for casters, Delusion for warriors). [[{{Muggles}} Non-Adepts]] frequently carry usable healing and elemental-damage items.
* ''VideoGame/{{Xenoblade}}'' has a battle system that relies on well-timed, structured combos of special abilities, and often relies on two or even all three party members using skills in concert. The player can only control one at a time, but fortunately, your AI partners are smart. Each has their own AI, uses their skills at the best time and position they can, and tries to fulfill their proper role: for instance, your tank will switch targets to draw aggro away from other characters, while squishier characters will stop using skills for a few seconds to let that happen.
** Also, TheComputerIsACheatingBastard in your favor. An ally will never topple an enemy that has a [[CounterAttack spike]] effect that only works when toppled. The only way for a player to know this is to topple it and almost kill themselves attacking it. If you know they have a topple-inflicting art but they aren't using it, this is likely why. This is also why the cease attacking (not even with auto attacks) if the spike damage of said enemies would knock them out should the party members attempt another attack.
* The first four games of ''Franchise/TheElderScrolls'' had AI that was at best laughable, since they would just dead-zone you and try meleeing (if you could tell they're doing that; sometimes the sprites wouldn't show them attacking) or use up all their magicka in the first ten seconds and then stand in front of you swinging their weapons, while saying they fought mudcrabs better than you or calling you an n'wah. However, ''[[VideoGame/TheElderScrollsVSkyrim Skyrim]]'' features much better AI. Enemies might flee into another room to get help to fight you, archers will switch to a dagger when they're in melee range of you, and enemy casters are ''annoying'' because they'll use frost spells on you to reduce your stamina and deny power-attacks. And mages, when fighting other mages, will spam lightning on you to drain your magicka. Some of the higher-level Draugrs, who are armed with Shouts, will disarm you and force you to pick up your weapon while they get free shots. It's most prevalent to archer-player characters. The enemies know it's harder to hit a moving target, and will sometimes notice you're aiming at them and will strafe, sometimes they even wait until after you fired to sidestep and force you to miss. They also know the game averts the NoArcInArchery and will often shoot arrows from seemingly impossible angles where an archer trying to counter-attack would miss due to an object in the way.
** Players have also reported dragons use PC-tactics against ''players''. They're well aware that sometimes, people will sometimes GangUpOnTheHuman and land in a spot where you're forced to go into the aggro radius of other monsters who will then weaken you while the dragon breathes on you. Another observed tactic is that a dragon may attack a monster and then fly around the player, causing the creature to follow, approach the player, and attack him/her.
** [=NPCs=] that can cast magic on themselves do so in appropriate contexts. Powerful vampires, for example, are quick to cast invisibility on themselves before running away.
*** Some enemy mages will also use healing spells when their health gets too low, making it nearly impossible to use hit-and-run tactics to wear them down, as you could against a non-mage enemy.
** Ice Wolves appear to be moderately clever, making a small effort to flank the player rather than charge headfirst into a sword.
** Just when the player thinks he's gotten away with stealing, zero bounty and all, he may later encounter armed mercenaries sent after him, one of which is carrying a contract that reveals that whoever the player stole from sent them. If the player survives that encounter, the Dark Brotherhood may show up next... Little girls can hire bandits as well. So yes, a 10 year old can hire criminals to kill you.
** Hostile archers will constantly move back and forth if you're armed with spells or bows. They won't move at all if you're running toward them to attack in melee.
** Bandits, who normally would attack you on sight, will be very hesitant to do so if they're the survivors of an attack by something else that has thinned their ranks, and will even call out in an attempt to make you go away rather than fight.
** Should the player get into a spot where an enemy can't reach them with melee attacks, any enemy without some form of ranged attack will run away and hide so the player can't hit them with arrows or magic.
* ''VideoGame/Fallout4'' features much improved enemy combat AI compared to earlier games in the series.
** Human enemies will make good use of cover, and if you do the same, will try to flush you out with grenades. If one of their better-equipped comrades gets killed, they'll loot their weapon and use it themselves. If there's an unoccupied suit of power armor with a fusion core loaded, they'll happily jump in for the added protection. And when a group of Raiders or Gunners attacks one of your settlements, they'll exploit any holes in your defenses and try to disable your generators first, to shut down your sentry guns.
** It's also a lot harder to use stealth in this game. If you snipe at people from a concealed position, they'll take blind potshots back in an attempt to spook you into moving and revealing yourself, while their friends move in to sweep the area - assuming they don't just lob a missile or Mini-Nuke into where they think you're shooting from. If you're creeping around and backstabbing your targets, they'll search every dark corner for you. In any case, if anyone survives an encounter with you or comes across your handiwork, they'll run off and tell their friends to be on the alert.
** Low-level, generic Raiders suffer from ArtificialStupidity, and do things like hide behind [[EveryCarIsAPinto derelict cars]] or dismiss sounds as [[TheGuardsMustBeCrazy "probably nothing."]] Raider Veterans will not only ''not'' do that, but ''chew out their underlings for being so stupid.''
** Even the wasteland's mutated wildlife can be pretty smart. Mirelurks will cover their [[AttackItsWeakPoint vulernable faces]] with their claws as they scuttle towards you. Feral Mongrels will attack like packs of real dogs, circling around you and tearing at your flanks. Deathclaws will weave from side-to-side as they charge to foil your aim. And they're all smart enough to realize when you've climbed up or crawled into a place they can't reach, and will run off rather than let you shoot them with impunity, at least until they find another way to get at you.
* ''VideoGame/MassEffect2'' has pretty good AI, especially on Insanity level. Enemies "leapfrog" each other, advance under covering fire, use cover effectively, fire with good accuracy, use powers to flush you out, and flank you.
** ''VideoGame/MassEffect2'' has got NOTHING on ''VideoGame/MassEffect3''. From the demo alone, the game has displayed ridiculously impressive AI who use their powers and abilities and strength in numbers to overwhelm and flank you at an incredible rate. Its got probably the best tactical AI since ''[[VideoGame/FirstEncounterAssaultRecon FEAR]]'' or ''VideoGame/{{Crysis}}''.
*** See [[VideoGame/MassEffect3 the trope page]] for a bulleted list of brilliant tactics, exhibited by Cerberus units alone.
** The one thing ''Mass Effect 2'' does have on its successor is that its AIs will also [[CallingYourAttacks call out things they do]], and things they notice ''you'' doing (memorably, if you shoot a krogan with a [[EmergencyWeapon Predator]] he'll ''laugh'' at you) such as deploying drones. Blue Suns have particularly disciplined radio chatter, deploying and advising like military forces, while Shadow Broker goons will use codewords to avoid tipping you off to their strategies.
*** Cerberus troops will do the same thing. Geth, Husks, and Collectors don't for [[TheVoiceless obvious reasons.]]
* ''VideoGame/FortuneSummoners'' features extremely good friendly and enemy AI. Every enemy in the game up to and including ''the very first slime you encounter'' will bob and weave around your strokes and teach you very early on that mashing attack is very much not an option in this game. On the other hand, the meek little WhiteMagicianGirl you pick up early on will lead you on with her easily-terrified demeanor, then proceed to effortlessly dance right through a cloud of enemies while keeping you healed.
** Heaven forbid you try Vs. mode. One could be forgiven for thinking ''[[ your own main character]]'' got hijacked by [[ThatOneBoss/{{Atlus}} Atlus]] or something.
* The AI in the ''VideoGame/TalesSeries'' can go in and out of this. Estelle in ''VideoGame/TalesOfVesperia'' is considered TooDumbToLive because she has a melee attack (Not a good idea on the WhiteMagicianGirl, but on the plus side she has pretty high defense.) yet at the same time, she often uses an attack that brings enemies close together...while Rita or Raven is channeling an AreaOfEffect magic attack.
* In the remakes of the first two ''Franchise/StarOcean'' games, the AI's actually pretty good for the healers. If you tell them to focus on healing allies, they'll actually ''only'' use their MP on that. However, when they get the next level of healing magic, they'll automatically default to that and only use the level below when they're running low on MP. Granted, it's a little better to ''over''heal a bit than ''under''heal, but the AI doesn't judge how much will over-healed, so they'll use Faerie Healing on someone who's only missing a couple hundred health. Then again though, in the second game, the bosses get ''annoyingly'' fast and damaging, so maybe it's not as unjustified...
** Likewise, there are often times where if you tell the characters to do whatever it takes or attack with all they got, they'll blow through their MP really fast...however versus bosses, the melees actually try to keep the boss stun-locked so they can't get away. In ''The Second Story'', you ''have'' to push the final boss into a corner or surround him in melees while spamming attacks or else he'll kill everyone.
* This is one of the main features of ''VideoGame/DinsCurse''. The monsters' AI is dynamic, which means they will, unless you complete quests in a timely manner, gather and strengthen their forces, fortify their defenses, send spies and assassins to infiltrate the town and, eventually attack and overrun the town.
* This is one of the reason why ''VideoGame/DemonsSouls'' and ''VideoGame/DarkSouls'' is so difficult. The AI behavior is simple, and in many ways, predictable, based on simple "if-then" conditions. However, this is also what makes it very dangerous. For example, an AI for a regular enemy is coded such that, if its attacks get deflected by your shields, they will jump immediately out of the way to avoid your counter attacks. More defensive enemies, such as the spear-and-shield soldiers will patiently wait until you begin to attack or when your attacks are deflected by their shield before they begin attacking. Other times, they break patterns for no reason to see what your reactions are before responding. The aforementioned spear wielder for example, may suddenly rush you without rhyme or reason, but with just enough irregularity that you don't expect it to do that. However, the arguably most recognizable enemy AI pattern is their tendency to rush you the moment they see you healing. Defeating the enemies then, counter-intuitively, is for you to think like an AI and know what they would do in response to your actions.
** The de facto hardest boss in the game, bar none, is Ornstein and Smough, a DualBoss with AI patterns that are predictable, but cover for each other's weaknesses. Ornstein is a LightningBruiser that can zip around the battlefield, while Smough is a lumbering MightyGlacier. They rarely move independently from each other, cover each other's advances and retreats, flank you from different directions, and even forcibly open your guard for the other's follow-up attack.
* The AI is generally this in ''VideoGame/{{Persona 3}}'' and ''VideoGame/{{Persona 4}}''. When set to a freeform tactic, they will try different attacks to figure out the enemies' elemental affinities until they find a weakness or until MissionControl identifies one (in the case of ''VideoGame/{{Persona 3}}''; your MissionControl in ''VideoGame/{{Persona 4}}'' cannot find affinites, only track the ones you've found). Once one is known, they ''will'' remember it and exploit it for all it's worth. If the player wants to trigger specific actions, they can set the AI to follow certain thought patterns; the most useful ones are the option to specifically target and destroy an enemy of your choice, the option to focus them on using healing and support skills, and the option to only ''knock down'' the enemies, rather than focusing on killing them. This last one is a brilliant example because the battle system awards you with extra turns by exploiting weaknesses. Thus, against a team of enemies with a common weakness that a member can exploit, said member will abuse that weakness, knock down an enemy (the enemy's death optional) then proceed to ''ignore it'' and work down the rest, setting you up for either a follow-up [[BigBallOfViolence All-Out Attack]] or a different action altogether. This is sadly interspaced with the ocassional act of ArtificialStupidity from your teammates, like the ones that learn status-inflicting ones. Fortunately, the player can remove this random factor entirely by taking direct control of the whole team in ''VideoGame/{{Persona 4}}'' and ''VideoGame/{{Persona 3}}: [[UpdatedRerelease Portable.]]'' On the opposite side, enemies ''will'' exploit a weakness they discover in your team, although they will usually shift to something else in order to test more elements, if applicable. This is far truer in ''VideoGame/{{Persona 4}}'' than in ''3'', since the battle system there received a couple alterations, a notable one being that just one target of a multi-hit spell needs to be weak to it and hit in order to award the extra turn, rather than all targets like it had been in ''3'', resulting in enemies that will proceed to mercilessly pound your team again with more multi-target magic, or take advantage of your stun and either buff themselves up, debuff you, or use a special move on you that requires you to be knocked down, and of course, deals massive damage. This fact comes to a head with [[BonusBoss The Reaper]] and [[ThatOneBoss the World Balance]]. The Reaper will actively target [[WeCannotGoOnWithoutYou your character]] if it discovers a weakness, and if it doesn't, will experiment with the rest of your team, ''removing'' immunities to elements that don't work on them once it knows them. The latter actually managed complaints from players that argued it was adapting to their tactics. For more fun, if you put a magic-reflecting shield on your party even ''once'', both of these things will drop everything to start bombarding your whole team [[SpamAttack perpetually]] with [[NonElemental Almighty spells]] like Megidola and Megidolaon, the only kind of spell that said magic-reflecting shield ''can't'' stop.
** The party AI also seems to understand not to waste SP on healing minor cuts and scrapes. They'll tend to wait until someone's health is significantly low before healing. However, the AI still do some pretty dumb things. If their attacks prove ineffective, in P3, they will usually just select the "wait" option, instead of using their support abilities, which can get a bit annoying to constantly see your allies just waiting around and making you do all the work. This was improved in P4, where they generally will use support skills in these situations. Also, your allies never seem to get the message that light and darkness spells (insta-kill spells in this series) will NEVER work on bosses. They'll learn after they try it, but it is annoying to see them waste a turn trying to use spells that NEVER work on bosses for rather self-evident reasons.
** One enemy in P4 actually tries to ''trick'' the player into using a move; a boss in an early dungeon will start the battle by using a skill on itself that raises its resistance to a certain elemental attack. The player would assume that the enemy is weak to that element and is trying to remove its weakness, and is ready to use it once the resistance wears off...only to find that the boss ''absorbs'' that element.
* In the core ''Franchise/ShinMegamiTensei'' series, Atlus enjoys baiting gamers into taking silly risks. For instance, in ''VideoGame/ShinMegamiTenseiIV'', Fiends and {{Bonus Boss}}es hit like a truck with powerful elemental attacks. Should you decide to stack the deck against them by fusing parties specifically to counter these moves, thus removing their Press Turns, they will instead go ''berserk'' and start spamming Almighty moves to bombard you and your entire team into oblivion.
* The Cactuars in ''VideoGame/FinalFantasyIX'' can cause Confusion to your party, making them have a random chance of attacking enemies or their own party. Think that is bad enough? The same Cactuars will also cast Haste on confused characters, making them faster to attack and faster in destroying themselves.
* Party AI in the ''VideoGame/DragonQuest'' games is usually pretty reliable, using healing moves and buffs when necessary. However, their main strength is in knowing which of the enemy has the least HP and targeting it first, brutally ganging up on the enemy party one member at a time. It also makes LevelGrinding a lot faster if you remove the main character from the active party, as there's no need to input commands.
** ''VideoGame/DragonQuestVIII'' is notable in that you can make the computer cheat in your favour. Because the player must put in every action before the round begins, they must make a dedicated healer patch up people who took damage from the last round or pre-emptively heal in case enemies hit the entire party. However, if one puts Angelo on AI, he'll know just ''who'' to heal and which heal to use, and if nobody needs to be healed (yet), will join in damage-dealing.
* ''Videogame/DragonsDogma'':
** Your Pawn companions may sound like they're from an unholy combination of a trashy romance novel and a poorly run LARP session but they are invaluable in combat. They'll remember tactics that hurt particular creatures and use them unstintingly, as well as informing you about them. They'll team up to use spell combos and heal you if you need it. They'll even clamber up larger monster like you can and stab them in uncomfortable places. Even better, if another player uses your Pawn, not only do you get a bunch of rewards but they'll remember quests you haven't been on and tell you how to complete them, not to mention any monsters they might have faced.
** The monsters themselves are no slouches. Each variety have a bunch of painful and annoying skills they'll use to try and kill you. For examples harpies will sing to lure you into a daze then pick you up and drop you from a great height. Chimeras will cast spells at you and try and trample you at the same time. Bandits will try and interrupt your combination attacks and wolves will try and circle you in packs.

[[folder:Simulation Game]]
* ''VideoGame/BlackAndWhite'' is famous for its use of The Creature, a pet that acted as the representation of your power on Earth (since your status as an incorporeal god somewhat limits your ability to affect the world directly). The Creature acts independently and cannot be controlled directly, but can learn and be taught a wide variety of behaviors through a combination of classical conditioning (stroking them after they do something you want them to do, and spanking them after they do something you don't want them to do) and imitative behavior (if your creature sees you setting fire to villagers, he'll start setting fire to villagers). In this manner you raise the Creature like a child, and can shape its behavior and personality in a wide number of ways.
** Famously, during a demo of the game at a major conference, as Molyneux was speaking, the Creature proceeded to surprise him by learning "rock + fire = extra damage" without prompting.
* The A.I. of ''VideoGame/TheSims 3'' has been noticeably improved on compared to the previous 2 games, with Sims being able to live out their lives autonomously with almost complete success, instead of doing dumb stuff like missing work because of improper sleep schedules, traveling across the house to use a bathroom instead of using the one two feet in front of them, or staring at a fire and letting it burn down the house instead of actually doing something about it.
** Although they still miss work [[TruthInTelevision playing]] [[ThisLoserIsYou computer games]].
** In the first two games, you could delete the pool ladders (or create a one-way moat around your house) and watch as the sims all stay in the pool until they drown. Imagine everyone's shock when they tried that in ''VideoGame/TheSims 3'' and the sims ''climbed out'' of the pool like you would expect someone to do in RealLife.
* ''VideoGame/DwarfFortress'' is infamous for tracking the logical consequences of ''everything you can do'', often leading to ButterflyOfDoom or ForWantOfANail situations if you aren't CrazyPrepared yourself for everything you can do. One update added vampires, along with murder-mystery systems as the dwarves try to figure out who's exsanguinating everyone in their sleep. The brilliance is that the vampires themselves will try to accuse others of being the vampire (though [[TooDumbToLive dwarven intelligence]] is not so robust that they won't accuse infants).
* ''VideoGame/VectorThrust'''s AI revolves around the philosophy of "whatever the player can do, the AI can do too." Because of the game's heavy focus on modding, they also are able to learn and very quickly use player-made weapons and aircraft as well.
** AI pilots take into account damage level, weapon inventory and their proximity to allies and enemies when in battle, leading to situations where a computer-controlled aircraft will limit use of their missiles and guns as they run low on ammunition unless they're sure that their shots will connect.
* ''VideoGame/LethalSkies 2's'' features suprisingly robust friendly AI. The player's wingmates are able to complete objectives, respond to orders quickly and efficiently, and are able to dogfight -and win- against similarly-skilled enemies with no assistance from the player, and that without resorting to the crutch of [[GameplayAllyImmortality making them invincible]].
* The Healer class in ''VideoGame/{{Majesty}}'' generally defaults to follow-heal behavior for another hero. However, they will sometimes elect to follow-heal your tax collectors, who are incredibly fragile and also favorite targets of monsters because of the gold they carry. Thanks, Healers!
* The Norns of ''VideoGame/{{Creatures}} are pretty sophisticated and do a good job of simulating animal behavior most of the time. Except, of course, for the infamous {{Wallbonking}} bug - which was famously solved by ''making them unable to learn'', at least [[ by one account]]. Apparently the preprogrammed instincts did a better job at creating brilliance than did the AI's learning. Later hacking attempts would produce Norns [[ that could learn better than the original releases]].

[[folder:Sports Game]]
* ''Videogame/EarlWeaverBaseball''. It even had "Artificial Ego". It was deliberate stupidity, but not because the AI was bad. Sometimes, the player would attempt something risky just because it thought it could make it. And since the game had realistic physics and throwing, sometimes it would ''succeed'' because the throw was a little offline when, say, trying to take an extra base. Outfielders would give up on deep flies to get the carom off the wall, but, again, sometimes they would have an ego to try to catch the uncatchable ball, and find themselves chasing the carom.
* A glitch in the NES ''Lunar Ball'' game was recently found and utilized in a Tool Assisted Superplay. The entire TAS in question was done not by a human but by a bot that was specifically designed to find the most frame-efficient way to finish each board using what was known about the game, taking into account that deliberately performing a shot that pockets no balls reduces the number of frames spent waiting for the bonus to be added to the score. [[CrowningMomentOfAwesome The bot stumbled across the glitch by mere luck and decided "hey, this works better".]] [[ This is the TAS in question]].
* Almost paradoxically, happens in ''Pro Evolution Soccer'' a lot on the easier difficulty settings: not only will the AI let the player take his time while practicing basic skills and passing, it will also purposely decide to defend or attack according to how well the player is learning. It's most notable on a beginner's first run, as any player who has mastered these skills will obviously notice all loopholes.
* ''NBAJam: On Fire Edition'' by EA Sports makes use of Real AI, originally developed for their FightNight series, to learn the player's strategies and make the CPU smarter as you level up, to the point where the AI can play like a human opponent. This is particularly apparent during the Platinum Challenges in Road Trip mode, featuring the "Jam Bots" that employ the same strategies you've been using against the CPU. Know all the tricks to blow out the CPU? You better know how to counter them, because they'll be [[NintendoHard thrown right back at you without mercy]].
* In Sony's ''MLB The Show'', if a user has a tendency to swing at certain pitches outside of the zone at a high frequency, the AI will exploit that weakness often until the player stops doing so.
* In ''VideoGame/ArcStyleBaseball3D'', with the bases loaded, if you hit a grounder to an infielder, they will throw to the plate for the force out, and then the catcher will throw to first to attempt a double play. This heavily contrasts with the game's usual ArtificialStupidity.

[[folder:Stealth Based Game]]
* ''VideoGame/{{Thief}}'' is notable for implementing a complex sensory system for its A.I. characters, allowing guards to be aware of and respond to environmental factors such as noise, lighting, movement, and shadows. While [[WebAnimation/ZeroPunctuation Yahtzee]] was playing it, he accidentally jumped out and then leapt back in while a guard was watching him. Instead of the guard just moving on, he yelled "Don't think you can just jump back into the shadows, boy!" which, Yahtzee said, "Surprised both myself and [[PottyFailure my dry cleaner."]]
* Every ''Franchise/MetalGear'' game after (and including) [[VideoGame/MetalGearSolid2SonsOfLiberty MGS2]] has had some MASSIVELY improved AI. When walking on metal floors, an enemy will hear it if a) they are close enough or b) if it is loud enough. If a soldier is downed and another person sees the bloodspot or finds the corpse, they will automatically kick it up to maximum security and a new guard will be sent to the area. If a guard is knocked out, they will kick it up to maximum security. If all guards have been killed, the commander will notice after a while and send a heavy-duty team to investigate. If the player has been spotted by a guard, they will smack/shoot the player (depending on how far away he is) and call for reinforcements. If the player has used a chaff grenade or has shot the guard's radio, he will try to gun the player down himself. When heavy reinforcements are called out, some of them will have riot shields and will use them as a baracade trapping Snake into a corner or narrow hallway. Also during Alert Mode, if there are blood trails on the floor leading into lockers and/or closets, the enemies will either throw a grenade into that area, or have each soldier comb each nook and crannie of the area and search the lockers (and they can HEAR YOUR HEARTBEATS and your breathing if you stand too close to the locker door!). If you are hiding behind cover, some guards will provide suppressing fire while some others will flank around you. Enemies also can have the uncanny ability to spot discolorations in the atmosphere or a floating gun if you are using stealth camo.
** The trailer for ''VideoGame/MetalGearSolid2SonsOfLiberty'' features a firefight between Snake and a couple of mook guards, to show off how the bullet spray destroys the environment. Konami at one point stated that they had to change the AI to allow that to happen -- if it was straight gameplay, the guards would have used more effective tactics, which wouldn't have given as good of a visual.
** ''[[VideoGame/MetalGearSolid3SnakeEater Metal Gear Solid 3]]'' takes this a step further by adding a camo system. If a guard sees rustling grass or some oddly colored spots in the environment, they will go to investigate.
*** Also, if your stamina is low enough, your stomach will start growling and if an enemy is nearby, they will hear it and investigate, effectively screwing over the player if they are out of food because your accuracy and wound healing both depend on your stamina.
*** Not only that. If you managed to outrun your pursuing soldiers during an Alert, and managed to hide in some room in a fortress, for example, they'd sweep each room thoroughly, starting by chucking ''a flashbang'' into the room, temporarily blinding and deafening you, then storming in, finding you, and proceeding to carve you up with bullets. If enemies had access to gun-emplacements, you can bet your life on it they'd use them against you. Oh, they'd also be able to smell your cigar if you happened to be smoking it, or the smell of your ''clothes'' if you happened to be wearing the Fly camo, or the sight and smell of your vomit if you happened to retch either from sickness or EasterEgg. And these are just regular {{Mook}}s. There's a special brand of {{EliteMook}}s that appear only on special areas, that are specifically designed and programmed to patrol the area hunting for Snake while setting up positions for both spotting and ambushing him. This includes setting up a sniper from the rooftop of a building Snake just escaped from, while having about another half-dozen guys patrolling the surrounding area, each and everyone equipped with top-grade weapons, fast reflexes and efficient tactics.
* The A.I in ''VideoGame/HitmanAbsolution'' is very noticeably upgraded from past games. Enemies will no longer run up to a corpse, run back and forth while swiveling their heads, and walk away like nothing happened. Now, they will sweep the area if they notice a body on the ground, gather fellow guards to assist in their search by calling for help, and are able to identify the player as the perpetrator if they stand next to the body or bloodstains. But the most impressive improvements are seen during combat. Enemies will flank the player aggressively, take good cover, and duck back into cover if they come under fire, making them difficult targets to take out. The toughest enemies in the game, the Agency Heavy Troopers, are especially aggressive and will charge the player when he reloads, move as groups, and pin the player down with automatic fire.
* The Xenomorph's A.I. in ''VideoGame/AlienIsolation'' is truly something to behold. It is almost 100% unpredictable, can pop up at anytime, anywhere and puts on a constant cat-and-mouse game. Even more impressive is that it learns as the game goes on, adapting to the player's tactics allowing it to remain constantly dangerous. Making noise is the worst thing one can do, as it will pick up on anything from a gunshot to the beeping of the motion tracker. Use a certain type of hiding space too many times and it will start searching those hiding spaces more carefully. After being fooled too many times by flares, it will begin ignoring them completely. Even with the flamethrower, the best weapon in the game at warding it off, it will learn the range and force players to waste fuel before it leaves.
* This is the primary selling point of ''VideoGame/HelloNeighbor''. The Neighbor (whose house you're trying to sneak into) is ''smart'', and actively learns from the way you play the game. Sneak in through the back window? He'll set up a bear trap under it. Use the front door? He'll set up cameras. Escape? He can find shortcuts.

[[folder:Third Person Shooter]]
* ''VideoGame/TheLastOfUs'' features [[{{Mooks}} small enemy squads]] that pan out amongst a small area, looking for supplies. You can throw objects as distractions, sneak up behind enemies and hold them as a human shield, hide out of sight, duck behind cover, take their weapons away, and use improvised weapons like bricks and Molotov cocktails to do real damage. The kicker? ''The enemies can do all of that, too.'' In addition, when you're spotted, they'll give away your location to call for reinforcements, either as they run to cover (like "he's by the door!") or as you struggle with them (shouting "he's in here!" while trying to take their gun away). Plus, if you try to fire your gun when you're out of ammo, the gun will click, enemies will know you're out, and become more aggressive. They will also use their superior numbers to their advantage by swarming you from all directions instead of running directly into your line of fire. This makes it hard to remain in one position during gunfights
** In many games that use stealth mechanics, if you are spotted by enemies and then manage to go back into hiding, the enemies will simply return to their casual patrol patterns and forget they ever saw you. But in this game, after you are spotted by the enemies, they will remain on "hightened alert" if you escape and go back into hiding. After enemies lose track of you, they will return to patrolling, but their patrols will be far more randomized and aggressive. They will move in random patterns, actively search around corners and possible hiding spots, and move at a significantly faster pace. This mechanic effectively punishes you the first time you fail at stealth mechanics, as it makes the section of the level you are in significantly harder to sneak through.
** Your partner, Ellie, is also very smart. In an attempt to avert some of the [[ScrappyMechanic worst aspects]] of the EscortMission, Ellie automatically goes to cover when enemies are nearby. She can also use improvised weaponry, like throwing a brick at an enemy's head to give you a chance to rush him. Ellie can also attack enemies who have you pinned to get them off of you.
* ''VideoGame/MaxPayne3'' has quite realistic and adaptive A.I. Notably, they will react to gunfire by ducking back into cover and waiting for an opportune time to move up. UFE squads will generally stick together in coordinated assaults, flanking from multiple directions.[[/folder]]

[[folder:Turn Based Strategy]]
* The enemy AI in ''VideoGame/FinalFantasyTactics'' can be quite good at times. Its main flaws are that it usually doesn't have good skills or equipment to work with, and it can't plan its actions multiple turns in advance, so its brilliance is limited to what the best action within the current AT list is (including spells/abilities currently charging). Fixing these is the purpose of one of the more notable [[GameMod Game Mods]].
** To give examples, the AI properly understands elemental absorption for healing its allies, attacking MP (or restoring it) to affect charging spells, and ''bouncing spells off of Reflect to increase range''. That last one is a very rare situation even for human teams. It also performs extremely esoteric actions such as placing a doomed unit (e.g. a fatal spell is charging on it that it can't escape) in front of a dead ally Mime solely because if the player uses a Phoenix Down to revive their Mime, their Mime will mimic the Phoenix Down and resurrect the enemy unit.
** An unprepared player may be caught off guard as the AI even knows how to exploit the game's projectile rules. For example, range weapon-equipped characters can shoot enemies that are too close to be targeted by shooting at enemies standing behind their intended targets; this can even be done with longbows, but requires a major elevation difference between the attacker and intended target! The computer will occasionally mess up these attempts though- not surprising considering how hard they can be to predict.
** The AI perfectly understands the mechanics behind the Calculator class. If you have your entire party as Calculators, then set your party to AI, and they will wipe the floor with the enemy team.
* Its spiritual predecessor, ''VideoGame/TacticsOgre'', also has the same. You'll ''hate'' that they averted the NoArcInArchery trope when you're fighting an uphill battle, and love it when you realize you can do the same. The PSP remake also takes this up to eleven, where the enemies know to focus fire on low-health targets, targets that will take a lot of damage such as low-levels and squishies, and to ShootTheMedicFirst. You can still exploit this by sending someone with no equipment out to act as a decoy. They also will send knights with rampant aura (Which prevents you from moving further than them) to body-block you and just stand there with Phalanx on (reduces damage by 90%). They even decide that the end justifies the means too - they'll often target their own allies with status inducing spells just because they're surrounded by more enemies.
* The AI in ''[[VideoGame/FireEmblemJugdral Fire Emblem: Thracia 776]]'' is dangerously smart. For instance, if you steal a mook's only weapon, he will run to the nearest weapon shop (if there's any that sells weapons he can use), and will actually ''buy the best weapon he can use and attack you with it next turn''.
** Enemy flying units will prefer to attack your ground troops from whatever range that denies you from counterattacking(if possible) and then use their remaining move spaces to fly away into terrain where you cannot retaliate, [[SpitefulAI effectively denying you the chance to finish them off]].
*** Similarly in ''VideoGame/FireEmblemElibe'' and ''VideoGame/FireEmblemTheSacredStones'', mages with versatile attack ranges will often run ''right'' up to your archers and attack at a range where they cannot counterattack. You would really want to be careful if there's a Swordslayer axe wielders will run ''right'' for the nearest sword user (Especially if they're a Lord) to use the swordslayer on.
** In [[VideoGame/FireEmblemTellius Fire Emblem: Radiant Dawn]], [[MemeticBadass 3-13 Archer]] is a rare aversion to typical Allies. When his ballista runs out and his soldiers are attacked he will move and attack. [[EnsembleDarkhorse He's even garnered a fanbase because of this.]]
** The AI in recent ''VideoGame/FireEmblem'' games has become quite smart. They know that everyone will go for a one hundred percent survival rate, so [[SpitefulAI They try to make you]] RageQuit.
** The AI in ''[[VideoGame/FireEmblemAwakening Awakening]]'', is particularly devious. If you try to set up a formation to protect your weaker units, the enemy will focus on the weakest unit on your frontlines to either kill them or force them to retreat for healing, which either way will leave a gap in your defences. And if you're doing an EscortMission, and your formation is less-than-airtight, the enemy will simply ignore your units and go straight for the ones you're trying to protect; it is even smart enough to have units with ranged attacks attack the person being escorted if they can bypass you.
** In [[VideoGame/FireEmblemFates Fates]], the AI knows that the best thing to do if it is low on health and in range of a fort is to move straight to that fort, where it will get a small amount of health back at the end of each turn.
*** The ''Fates'' AI also understands the concept of objectives - if the the win conditions are anything other than Rout or Defeat Boss, it will alter its strategy accordingly. This is part of what makes Conquest chapter 10 both ThatOneLevel and BestLevelEver: the AI ''knows'' all it has to do is get one unit behind your lines to make you lose, and will be startlingly intelligent in doing so, such as using diversions, or positioning paired-up units such that other units can slip behind your lines.
*** The ''Fates'' AI also seems to know that it is more efficient to [[ZergRush attack all at once;]] even if a few of them can attack someone nearby, the AI will wait until you get in range of as many units as possible.
* In 1981, and then again in 1982, Douglas Lenat [[ tested his learning program]], [[ Eurisko]], in a ''TabletopGame/{{Traveller}}'': Trillion Credit Squadron tournament. Eurisko [[LevelGrinding simulated thousands of battles]], [[LoopholeAbuse found unconventional ship configurations and methods]], and defeated all comers. Twice. In a row. Even with notable rule changes. Eurisko could have done it a third time, but Lenat decided to retire it from the tournament, since if the program had won a 3rd time, it would be the last such tournament.
* The AI in ''VideoGame/VandalHearts'' is ruthless, deliberately playing to the TacticalRockPaperScissors of its system and using the terrain well to surround your characters and strike at their backs whenever possible. The player has to be very careful about how everyone is positioned at the end of their turn, otherwise the enemies will gang up on the most exposed member and take him or her out. This isn't without some holes, however -- while an enemy mage or archer might find the one spot on the map that lets him or her hit the unit they have an advantage against, it won't realize that when this one spot is right next to one of your heavy melee characters, it's wiser to wait.

[[folder:Wide Open Sandbox]]
* ''VideoGame/{{Bully}}'' has some. Prefects don't only chase you if you break a rule, they chase other kids who break rules.
* ''VideoGame/DeadRising'' was famous for having [[ArtificialStupidity incredibly stupid]] survivor AI. In ''VideoGame/DeadRising2'', they're much, ''much'' better. They follow you intelligently and are very good with weapons. If a zombie jumps onto you, they even [[BigDamnHeroes attack the zombie in order to save you]]!
* The Rapid Response military ships in ''[[VideoGame/{{X}} X3 Albion Prelude]]'' are some of the smartest enemies in the game. When they detect one of their race's stations are under attack, they'll jump their ships in and curb-stomp the enemy with [[MacrossMissileMassacre heavy missile spam]] fired from 80 kilometers away. When one of their capital ships starts to take heavy damage, it'll use its jump drive to jump to safety and go repair.
* ''VideoGame/{{Minecraft}}'':
** [[ActionBomb Creepers]] have an affinity for lurking in dark corners, specifically around areas you tend to frequent.
** When fighting, Endermen abuse their ability to teleport for all its worth. If you try to chase it down with a sword, it will teleport out of your reach and wait for you to drop your guard, then teleport back in to continue the fight, typically [[ParanoiaFuel right behind you]]. And when they've taken enough of a beating, they'll try to run away. They also have the presence of mind to teleport out of the way of arrows, and out of [[WeaksauceWeakness water]].
** Zombies and skeletons catch fire and burn in sunlight. They're smart enough to look for shade or water to prevent this, and skeletons in particular will not leave a safe place just to attack you. Forget artificial intelligence, Minecraft creatures actually have ''common sense!''
* The cops in ''VideoGame/GrandTheftAutoIV'' no longer focus solely on the actions of the player, and there are occasional random events where someone in front of you gets mugged and you'll see a cop run after them for an arrest. The player can take advantage of this in certain missions such as the optional assassination assignments. Your targets shoot on sight, so you can call the cops, run into the sight lines of the targets when the cops arrive, then watch the ensuing firefight. Generally the cops go down easy, but usually other police cars drive near, or you can keep calling them in yourself. This might lead to VideogameCrueltyPotential where a player might punch a random bystander, run toward a cop, and wait for them to retaliate, getting them arrested.
** ''Grand Theft Auto V'' takes it a step further with their police. During pursuits, they will set up spike strips where they expect the player to go, attempt to box the player in with one cop car in front and another cop car behind, drive better through traffic, and will sweep the area if they lose sight of the player, even checking obscure spaces that the player is likely to hide in such as canals or alleyways. Also, NOOSE helicopters have the annoying tendency to rappel NOOSE officers on top of buildings, resulting in the player getting hammered from all sides by gunfire. NOOSE officers will also drag wounded comrades out of the line of fire, which can lead to sadistic moments of killing a wounded enemy and his would-be rescuer.
** In ''GTA V''[='=]s multiplayer portion, i.e. ''GTA Online'', you can provoke gunfights between the cops and street gangs. The easiest way to initiate this is to start a so-called Gang Attack (where the player has to take out 10 - 25 members of various gangs), get a wanted level as quickly as possible, and then hide. The cops will arrive and - since all they can see are the gang members firing at the player's location - will consider them hostile and attack. The AI for both factions is surprisingly smart; advancing when possible, retreating if necessary, taking cover, trying to flank each other, using suppressive fire, etc. is very common. The cops still get wiped out 9 times out of 10 (at least) due to being armed only with pistols and shotguns, whereas the gang members will be armed with [=SMGs=], assault rifles, heavy machine guns, sniper rifles, and even Gatling guns, while also outnumbering the cops at least 2:1.