Game artificial intelligence

Game artificial intelligence

Game artificial intelligence refers to techniques used in computer and video games to produce the illusion of intelligence in the behavior of non-player characters (NPCs). The techniques used typically draw upon existing methods from the academic field of artificial intelligence (AI). However, the term game AI is often used to refer to a broad set of algorithms that also include techniques from control theory, robotics, computer graphics and computer science in general.

Since game AI is centered on appearance of intelligence and good gameplay,Fact|date=September 2008 its approach is very different from that of traditional AI; hacks 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 first-person shooter games, where their perfect movement and aiming is beyond human skill.

History

The first videogames developed in the 1960s and early 1970s, like "Spacewar!", "Pong" and "Gotcha" (1973), were games implemented on discrete logic and strictly based on the competition of two players, without AI.

Games that featured a single player mode with enemies started appearing in the 1970s. The first notable ones for the arcade included the 1974 Atari games "Qwak" (duck hunting) and "Pursuit" (dogfight simulator). Two text-based computer games from 1972, "Hunt the Wumpus" and "Star Trek", also had enemies. Enemy movement was based on stored patterns. The incorporation of microprocessors would allow more computation and random elements overlaid into movement patterns.The idea was used "Space Invaders" (1978), sporting an increasing difficulty level, distinct movement patterns, and in-game events dependent on hash functions based on the player's input. "Galaxian" (1979) added more complex and varied enemy movements.

"Pac-Man" (1980) applied these patterns to maze games, with the added quirk of different personalities for each enemy, and "Karate Champ" (1984) to fighting games, although the poor AI prompted the release of a second version.

Games like "Madden Football", "Earl Weaver Baseball" and "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 finite state machines. Real-Time Strategy games taxed the AI with many objects, incomplete information, pathfinding problems, real-time decisions and economic planning, among other things. [Schwab, 2004, p. 97-112] The first games of the genre had notorious problems. "Herzog Zwei", for example, had almost broken pathfinding and very basic three-state state machines for unit control, and "Dune II" attacked the players' base in a beeline and used numerous cheats. [Schwab, 2004, p.107] Later games in the genre exhibited much better AI.

Later games have used nondeterministic AI methods, ranging from the first use of neural networks in a videogame in "Battlecruiser 3000AD" (1996), to the emergent behaviour and evaluation of player actions in games like "Creatures" or "Black & White".

"Goldeneye 007" (1997) was one of the first FPSs to use AI which would react to players movements and actions as well as taking cover, performing rolls to avoid being shot and throws grenades at the appropriate time.Fact|date=October 2007 Its creators later expanded on this in the title "Perfect Dark", with enemies running for dead team mates' weapons if the player shot the weapon out of the hand.Fact|date=October 2007 The only unfairness during the course of both games was that enemies knew where the player was, even if no one saw where the player hid.Fact|date=September 2008

"Halo" (2001) AI that can use vehicles and some basic team actions. The AI could recognize threats such as grenades and on coming crafts.

"Far Cry" (2004) exhibited very advanced AI for its time, although this made minor glitches more apparent. The enemies would react to the player's playing style and try to surround him when possible. They would also use real life military tactics to try and beat the player. The enemies did not have "cheating" AI, in the sense that they did not always know exactly where the player is all the time. They would remember his last known position and work from there.

AI has continued to improve, with aims set on a player being unable to tell the difference between computer and human players.

Views

Some game programmers consider any technique that is used to help create the illusion of intelligence to be part of a game's AI. This view is controversial because it includes techniques that are also widely used outside of a game's AI engine. For example, information about potential future collisions is an important input to algorithms that help create characters that are clever enough to avoid bumping into things. But the same collision detection techniques are also commonly needed to implement a game's physics. Similarly, line of sight test results are usually important inputs to AI targeting decisions, but are also widely used inside the rendering engine. A final example is scripting, which can be a convenient tool for all aspects of game development, but is often closely associated with controlling NPCs' behavior.

Purists complain that the "AI" in the term "game AI" overstates its worth, as game AI is not about 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 strong AI that can reason, "game AI" often consists of a half-dozen rules of thumb, or heuristics, that are just enough to give a good gameplay experience.Fact|date=September 2008

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 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 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 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.Fact|date=September 2008

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 NPCs in the game, although scripting is currently the most common means of control. Pathfinding is another common use for AI, widely seen in 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 "fog of war". Game AI is also involved with dynamic game balancing.

The concept of emergent AI has recently been explored in games such as "Creatures", "Black & White" and "Nintendogs" and toys such as 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.

Cheating AI

Cheating AI is a term used to describe the situation where the AI has bonuses over the players, such as having more hit-points, driving faster, or ignoring fog of war. The use of cheating in AI shows the limitations of the "intelligence" achievable artifically; 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 the bonuses.cite book | title=AI Game Programming Wisdom | editor=Rabin, Steve | author=Scott, Bob | chapter=The Illusion of Intelligence | pages=p. 19–20 | year=2002 | publisher=Charles River Media] In the context of AI programming, cheating refers only to any privilege given specifically to the AI; this does not include the inhuman swiftness and accuracy natural to a computer, although a player might call that "cheating".

Of course, in reality the human always has the "disadvantage" of having to rely on visual and auditory input to infer an abstract game situation, while the AI has direct, though possibly limited, access to the abstractions of the game engine. However, nobody seriously considers that a true game AI should have to include visual processing algorithms, especially since human vision is a giant leap beyond what is currently possible for computer vision.

One common example of cheating AI is found in many racing games. If an AI opponent falls far enough behind the rest of the drivers it suddenly receives an enormous boost in speed or other attributes, enabling it to catch up and/or again become competitive. This technique is known as "rubber banding" because it allows the AI character to instantly snap back into a competitive position. A similar method is also used in sports games such as the "Madden NFL" series.


= See also =
* General Game Playing
* Computer chess
* Computer Go
* Action selection
* Computer game bot
* Simulated reality
* Dynamic game balancing

References

* Bourg; Seemann (2004). "AI for Game Developers". O'Reilly & Associates. ISBN 0-596-00555-5.
* Buckland (2002). "AI Techniques for Game Programming". Muska & Lipman. ISBN 1-931841-08-X.
* Buckland (2004). [http://www.ai-junkie.com/ai-junkie.html "Programming Game AI By Example"] . Wordware Publishing. ISBN 1-55622-078-2.
* Champandard (2003). [http://fear.sourceforge.net "AI Game Development"] . New Riders. ISBN 1-59273-004-3.
* Funge (1999). "AI for Animation and Games: A Cognitive Modeling Approach". A K Peters. ISBN 1-56881-103-9.
* Funge (2004). [http://www.ai4games.org "Artificial Intelligence for Computer Games: An Introduction"] . A K Peters. ISBN 1-56881-208-6.
* Millington (2005). [http://www.ai4g.com/ "Artificial Intelligence for Games"] . Morgan Kaufman. ISBN 0-12-497782-0.
* Schwab (2004). "AI Game Engine Programming". Charles River Media. ISBN 1-58450-344-0.
* Smed and Hakonen (2006). [http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470018127.html "Algorithms and Networking for Computer Games"] . John Wiley & Sons. ISBN 0-470-01812-7.

External links

* [http://www.gameai.com/ Game AI website]
* [http://www.igda.org/ai/ Special Interest Group on Artificial Intelligence @IGDA]
* [http://www.aiwisdom.com/ AI Game Programming Wisdom] aiwisdom.com
* [http://www.aboutai.net/ AboutAI] aboutai.net
* [http://aigamedev.com/ Game AI for Developers] AiGameDev.com
* [http://www.gamedev.net/reference/list.asp?categoryid=18 GameDev.net AI section]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Artificial intelligence (video games) — In strategy games like Freeciv, the game AI must deal with large amounts of information Game artificial intelligence refers to techniques used in computer and video games to produce the illusion of intelligence in the behavior of non player… …   Wikipedia

  • Artificial intelligence — AI redirects here. For other uses, see Ai. For other uses, see Artificial intelligence (disambiguation). TOPIO, a humanoid robot, played table tennis at Tokyo International Robot Exhibition (IREX) 2009.[1] Artificial intelligence ( …   Wikipedia

  • artificial intelligence — the capacity of a computer to perform operations analogous to learning and decision making in humans, as by an expert system, a program for CAD or CAM, or a program for the perception and recognition of shapes in computer vision systems. Abbr.:… …   Universalium

  • Artificial intelligence in fiction — This is a sub article of Artificial intelligence (AI), describing the different futuristic portrayals of fictional artificial intelligence in books and film.Since Artificial Intelligence has a potential equal to or greater than our own, it can… …   Wikipedia

  • Applications of artificial intelligence — Artificial intelligence has been used in a wide range of fields including medical diagnosis, stock trading, robot control, law, scientific discovery and toys. However, many AI applications are not perceived as AI: A lot of cutting edge AI has… …   Wikipedia

  • Distributed artificial intelligence — (DAI) is a subfield of artificial intelligence research dedicated to the development of distributed solutions for complex problems regarded as requiring intelligence. DAI is closely related to and a predecessor of the field of Multi Agent Systems …   Wikipedia

  • artificial intelligence (AI) — Ability of a machine to perform tasks thought to require human intelligence. Typical applications include game playing, language translation, expert systems, and robotics. Although pseudo intelligent machinery dates back to antiquity, the first… …   Universalium

  • artificial intelligence — (or AI ) The science of making machines that can do the kinds of thing that humans can do. Topics of research have included speech recognition, visual recognition, and the more familiar problem solving and game playing. Modelling a psychological… …   Philosophy dictionary

  • Outline of artificial intelligence — The following outline is provided as an overview of and topical guide to artificial intelligence: Artificial intelligence (AI) – branch of computer science that deals with intelligent behavior, learning, and adaptation in machines. Research in AI …   Wikipedia

  • A.I. Artificial Intelligence — Theatrical re …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”