Codex Gamicus
Explore
Main Page
Discuss
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Forums
Company Index
Character Index
Hardware Index
In-Game Index
Ratings Index
Video Game Index
Fandom
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Fandom's centric source of video game knowledge
42,423
pages
Explore
Main Page
Discuss
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Forums
Company Index
Character Index
Hardware Index
In-Game Index
Ratings Index
Video Game Index
Fandom
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Game artificial intelligence
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Game artificial intelligence
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''Game artificial intelligence''' refers to techniques used in [http://en.wikipedia.org/wiki/Video_game computer and video games] to produce the [http://en.wikipedia.org/wiki/Illusion illusion] of [http://en.wikipedia.org/wiki/Intelligence_%28trait%29 intelligence] in the behavior of [http://en.wikipedia.org/wiki/Non-player_character non-player characters] (NPCs). The techniques used typically draw upon existing methods from the field of [http://en.wikipedia.org/wiki/Artificial_intelligence artificial intelligence] (AI). However, the term game AI is often used to refer to a broad set of [http://en.wikipedia.org/wiki/Algorithm algorithms] that also include techniques from [http://en.wikipedia.org/wiki/Control_theory control theory], [http://en.wikipedia.org/wiki/Robotics robotics], [http://en.wikipedia.org/wiki/Computer_graphics computer graphics] and [http://en.wikipedia.org/wiki/Computer_science computer science] in general. Since game AI is centered on appearance of intelligence and good gameplay, its approach is very different from that of traditional AI; [http://en.wikipedia.org/wiki/Workaround workarounds] and cheats are acceptable and, in many cases, the computer abilities must be toned down to give human players a sense of fairness. This, for example, is true in [http://en.wikipedia.org/wiki/First-person_shooter first-person shooter] games, where NPCs' otherwise perfect aiming would be beyond human skill. ==History== Game playing was an area of research in AI from its inception. In 1951, using the [http://en.wikipedia.org/wiki/Ferranti_Mark_1 Ferranti Mark 1] machine of the [http://en.wikipedia.org/wiki/University_of_Manchester University of Manchester], [http://en.wikipedia.org/wiki/Christopher_Strachey Christopher Strachey] wrote a checkers program and Dietrich Prinz wrote one for chess.<sup class="reference" id="cite_ref-0">[http://en.wikipedia.org/wiki/Artificial_intelligence_%28video_games%29#cite_note-0 [1]]</sup> These were among the first computer programs ever written. [http://en.wikipedia.org/wiki/Arthur_Samuel Arthur Samuel]'s checkers program, developed in the middle 50s and early 60s, eventually achieved sufficient skill to challenge a respectable amateur.<sup class="reference" id="cite_ref-1">[http://en.wikipedia.org/wiki/Artificial_intelligence_%28video_games%29#cite_note-1 [2]]</sup> Work on checkers and chess would culminate in the defeat of [http://en.wikipedia.org/wiki/Garry_Kasparov Garry Kasparov] by [http://en.wikipedia.org/wiki/IBM IBM]'s [http://en.wikipedia.org/wiki/Deep_Blue_%28chess_computer%29 Deep Blue] computer in 1997.<sup class="reference" id="cite_ref-2">[http://en.wikipedia.org/wiki/Artificial_intelligence_%28video_games%29#cite_note-2 [3]]</sup> The first [http://en.wikipedia.org/wiki/Video_game video games] developed in the 1960s and early 1970s, like ''[http://en.wikipedia.org/wiki/Spacewar%21 Spacewar!]'', ''[http://en.wikipedia.org/wiki/Pong Pong]'' and ''[http://en.wikipedia.org/wiki/Gotcha_%28arcade_game%29 Gotcha]'' ([http://en.wikipedia.org/wiki/1973_in_video_gaming 1973]), were games implemented on [http://en.wikipedia.org/wiki/Discrete_logic discrete logic] and strictly based on the competition of two players, without AI. Games that featured a [http://en.wikipedia.org/wiki/Single_player single player] mode with enemies started appearing in the 1970s. The first notable ones for the [http://en.wikipedia.org/wiki/Arcade_game arcade] included the [http://en.wikipedia.org/wiki/1974_in_video_gaming 1974] [http://en.wikipedia.org/wiki/Atari Atari] games ''[http://en.wikipedia.org/wiki/Qwak%21_%28arcade_game%29 Qwak]'' (duck hunting) and ''[http://en.wikipedia.org/wiki/Pursuit_%28arcade_game%29 Pursuit]'' (fighter aircraft dogfighting simulator). Two text-based computer games from [http://en.wikipedia.org/wiki/1972_in_video_gaming 1972], ''[http://en.wikipedia.org/wiki/Hunt_the_Wumpus Hunt the Wumpus]'' and ''[http://en.wikipedia.org/wiki/Star_Trek_%28script_game%29 Star Trek]'', also had enemies. Enemy movement was based on stored patterns. The incorporation of [http://en.wikipedia.org/wiki/Microprocessor microprocessors] would allow more computation and random elements overlaid into movement patterns. The idea was used by ''[http://en.wikipedia.org/wiki/Space_Invaders Space Invaders]'' ([http://en.wikipedia.org/wiki/1978_in_video_gaming 1978]), sporting an increasing difficulty level, distinct movement patterns, and in-game events dependent on [http://en.wikipedia.org/wiki/Hash_function hash functions] based on the player's input. ''[http://en.wikipedia.org/wiki/Galaxian Galaxian]'' ([http://en.wikipedia.org/wiki/1979_in_video_gaming 1979]) added more complex and varied enemy movements. ''[http://en.wikipedia.org/wiki/Pac-Man Pac-Man]'' ([http://en.wikipedia.org/wiki/1980_in_video_gaming 1980]) applied these patterns to maze games, with the added quirk of different personalities for each enemy, and ''[http://en.wikipedia.org/wiki/Karate_Champ Karate Champ]'' ([http://en.wikipedia.org/wiki/1984_in_video_gaming 1984]) to fighting games, although the poor AI prompted the release of a second version. Games like ''[http://en.wikipedia.org/wiki/Madden_NFL Madden Football]'', ''[http://en.wikipedia.org/wiki/Earl_Weaver_Baseball Earl Weaver Baseball]'' and ''[http://en.wikipedia.org/wiki/Tony_La_Russa_Baseball Tony La Russa Baseball]'' all based their AI on an attempt to duplicate on the computer the coaching or managerial style of the selected celebrity. Madden, Weaver and La Russa all did extensive work with these game development teams to maximize the accuracy of the games.Later sports titles allowed users to "tune" variables in the AI to produce a player-defined managerial or coaching strategy. The emergence of new game genres in the 1990s prompted the use of formal AI tools like [http://en.wikipedia.org/wiki/Finite_state_machines finite state machines]. [http://en.wikipedia.org/wiki/Real-time_strategy Real-time strategy] games taxed the AI with many objects, incomplete information, pathfinding problems, real-time decisions and economic planning, among other things. The first games of the genre had notorious problems. ''[http://en.wikipedia.org/wiki/Herzog_Zwei Herzog Zwei]'' (1989), for example, had almost broken pathfinding and very basic three-state state machines for unit control, and ''[http://en.wikipedia.org/wiki/Dune_II Dune II]'' (1992) attacked the players' base in a beeline and used numerous cheats Later games in the genre exhibited more sophisticated AI. Later games have used bottom-up AI methods, such as the [http://en.wikipedia.org/wiki/Emergent_behaviour emergent behaviour] and evaluation of player actions in games like ''[http://en.wikipedia.org/wiki/Creatures_%28artificial_life_program%29 Creatures]'' or ''[http://en.wikipedia.org/wiki/Black_%26_White_%28video_game%29 Black & White]''. [http://en.wikipedia.org/wiki/Fa%C3%A7ade_%28interactive_story%29 Façade (interactive story)] was released in 2005 and used interacitve multiple way dialogs and AI as the main aspect of game. Games have provided an environment for developing artificial intelligence with potential applications beyond gameplay. Examples include [http://en.wikipedia.org/wiki/Watson_%28artificial_intelligence_software%29 Watson], a [http://en.wikipedia.org/wiki/Jeopardy Jeopardy]-playing computer; and the [http://en.wikipedia.org/wiki/RoboCup RoboCup] tournament, where robots are trained to compete in soccer. =='''Views'''== Purists complain that the "AI" in the term "game AI" overstates its worth, as game AI is not about [http://en.wikipedia.org/wiki/Intelligence_%28trait%29 intelligence], and shares few of the objectives of the academic field of AI. Whereas "real" AI addresses fields of machine learning, decision making based on arbitrary data input, and even the ultimate goal of [http://en.wikipedia.org/wiki/Strong_AI strong AI] that can reason, "game AI" often consists of a half-dozen rules of thumb, or [http://en.wikipedia.org/wiki/Heuristic_%28computer_science%29 heuristics], that are just enough to give a good gameplay experience. Game developers' increasing awareness of academic AI and a growing interest in computer games by the academic community is causing the definition of what counts as AI in a game to become less [http://en.wikipedia.org/wiki/Idiosyncrasy idiosyncratic]. Nevertheless, significant differences between different application domains of AI mean that game AI can still be viewed as a distinct subfield of AI. In particular, the ability to legitimately solve some AI problems in games by [http://en.wikipedia.org/wiki/Cheating cheating] creates an important distinction. For example, inferring the position of an unseen object from past observations can be a difficult problem when AI is applied to robotics, but in a computer game an NPC can simply look up the position in the game's [http://en.wikipedia.org/wiki/Scene_graph scene graph]. Such cheating can lead to unrealistic behavior and so is not always desirable. But its possibility serves to distinguish game AI and leads to new problems to solve, such as when and how to use cheating. '''Usage''' Game AI/heuristic algorithms are used in a wide variety of quite disparate fields inside a game. The most obvious is in the control of any [http://en.wikipedia.org/wiki/Non-player_character NPCs] in the game, although scripting is currently the most common means of control. [http://en.wikipedia.org/wiki/Pathfinding Pathfinding] is another common use for AI, widely seen in [http://en.wikipedia.org/wiki/Real-time_strategy real-time strategy] games. Pathfinding is the method for determining how to get an NPC from one point on a map to another, taking into consideration the terrain, obstacles and possibly "[http://en.wikipedia.org/wiki/Fog_of_war fog of war]". Game AI is also involved with [http://en.wikipedia.org/wiki/Dynamic_game_difficulty_balancing dynamic game difficulty balancing], which consists in adjusting the difficulty in a video game in real-time based on the player's ability. The concept of emergent AI has recently been explored in games such as ''[http://en.wikipedia.org/wiki/Creatures_%28artificial_life_program%29 Creatures]'', ''[http://en.wikipedia.org/wiki/Black_%26_White_%28video_game%29 Black & White]'' and ''[http://en.wikipedia.org/wiki/Nintendogs Nintendogs]'' and toys such as [http://en.wikipedia.org/wiki/Tamagotchi Tamagotchi]. The "pets" in these games are able to "learn" from actions taken by the player and their behavior is modified accordingly. While these choices are taken from a limited pool, it does often give the desired illusion of an intelligence on the other side of the screen. ===Video Game Combat AI=== The many contemporary video games fall under the category of action, first person shooter, or adventure. In most of these types of games there is some level of combat that takes place. The AI's ability to be efficient in combat is important in these genres. A common goal today is to make the AI more human, or at least appear so. One of the more positive and efficient features found in modern day video game AI is the ability to hunt. AI originally reacted in a very black and white manner. If the player was in a specific area then the AI would react in either a complete offensive manner or be entirely defensive. In recent years, the idea of "hunting" has been introduced; in this 'hunting' state the AI will look for realistic markers, such as sounds made by the character or footprints they may have left behind These developments ultimately allow for a more complex form of play. With this feature, the player can actually consider how to approach or avoid an enemy. This is a feature that is particularly prevalent in the [http://en.wikipedia.org/wiki/Stealth_game stealth] genre. Another development in recent game AI has been the development of "survival instinct". In-game computers can recognize different objects in an environment and determine whether it is beneficial or detrimental to its survival. Like a user, the AI can "look" for cover in a firefight before taking actions that would leave it otherwise vulnerable, such as reloading a weapon or throwing a grenade. There can be set markers that tell it when to react in a certain way. For example, if the AI is given a command to check its health throughout a game then further commands can be set so that it reacts a specific way at a certain percentage of health. If the health is below a certain threshold then the AI can be set to run away from the player and avoid it until another function is triggered. Another example could be if the AI notices it is out of bullets, it will find a cover object and hide behind it until it has reloaded. Actions like these make the AI seem more human. However, there is still a need for improvement in this area. Unlike a human player the AI must be programmed for all the possible scenarios. This severely limits its ability to surprise the player. Another side-effect of combat AI occurs when two AI-controlled characters encounter each other; first noticed in the iD Software game ''DOOM'', so-called 'monster infighting' can break out in certain situations. Specifically, AI agents that are programmed to respond to hostile attacks will sometimes attack ''each other'' if their cohort's attacks land too close to them. ==Cheating AI== In the context of artificial intelligence in video games, cheating refers to the programmer giving agents access to information that would be unavailable to the player in the same situation In a simple example, if the agents want to know if the player is nearby they can either be given complex, human-like sensors (seeing, hearing, etc.), or they can cheat by simply asking the [http://en.wikipedia.org/wiki/Game_engine game engine] for the player's position. The use of cheating in AI shows the limitations of the "intelligence" achievable artificially; generally speaking, in games where strategic creativity is important, humans could easily beat the AI after a minimum of trial and error if it were not for this advantage. Cheating is often implemented for performance reasons where in many cases it may be considered acceptable as long as the effect is not obvious to the player. While cheating refers only to privileges given specifically to the AI—it does not include the inhuman swiftness and precision natural to a computer—a player might call the computer's inherent advantages "cheating" if they result in the agent acting unlike a human player. Cheating AI are a well-known aspect of Sid Meier's ''Civilization'' series; at high difficulty settings, the player must build his empire from scratch, while the computer's empire receives additional units at no cost and is freed from most resource restrictions.if [[Category:Terminology]]
Summary:
Please note that all contributions to the Codex Gamicus are considered to be released under the CC BY-SA 3.0
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab