General game playing

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

General game playing (GGP) is the design of artificial intelligence programs to be able to play more than one game successfully.[1] For many games like chess, computers are programmed to play these games using a specially designed algorithm, which cannot be transferred to another context. For example, a chess-playing computer program cannot play checkers. A general game playing system, if well designed, would be able to help in other areas, such as in providing intelligence for search and rescue missions.

Stanford project[edit]

General Game Playing is a project of the Stanford Logic Group of Stanford University, California, which aims to create a platform for general game playing. It is the most well-known effort at standardizing GGP AI, and generally seen as the standard for GGP systems. The games are defined by sets of rules represented in the Game Description Language. In order to play the games, players interact with a game hosting server[2][3] that monitors moves for legality and keeps players informed of state changes.

Since 2005, there have been annual General Game Playing competitions at the AAAI Conference. The competition judges competitor AI's abilities to play a variety of different games, by recording their performance on each individual game. In the first stage of the competition, entrants are judged on their ability to perform legal moves, gain the upper hand, and complete games faster. In the following runoff round, the AIs face off against each other in increasingly complex games. The AI that wins the most games at this stage wins the competition, and until 2013 its creator used to win a $10,000 prize.[1] So far, the following programs were victorious:[4]

Other approaches[edit]

There are other general game playing systems, which use their own languages for defining the game rules. In 1992, Barney Pell defined the concept of Meta-Game Playing, and developed the "MetaGame" system. This was the first program to automatically generate game rules of chess-like games, and one of the earliest programs to use automated game generation. Pell then developed the system Metagamer.[8] This system was able to play a number of chess-like games, given game rules definition in a special language called Game Description Language, without any human interaction once the games were generated.[9]

In 1998, the commercial system Zillions of Games was developed by Jeff Mallett and Mark Lefler. The system used a LISP-like language to define the game rules. Zillions of Games derived the evaluation function automatically from the game rules based on piece mobility, board structure and game goals. It also employed usual algorithms as found in computer chess systems: alpha-beta pruning with move ordering, transposition tables, etc.[10] The package was extended in 2007 by the addition of the Axiom plug-in, an alternate metagame engine that incorporates a complete Forth-based programming language.

Other general game playing software include:

  • A system called AiAi by Stephen Tavener (previous Zillions developer)[11] going back to 2015 and actively developed as of late 2017.[12][13]
  • A system called the PolyGamo Player by David M. Bennett released in September 2017 based on the Unity game engine.[14].

The General Video Game AI Competition (GVGAI) has been running since 2014. In this competition, two-dimensional video games similar to (and sometimes based on) 80s-era arcade and console games are used instead of the board games used in the GGP competition.

Algorithms[edit]

Since GGP AI must be designed to play multiple games, its design cannot rely on algorithms created specifically for certain games. Instead, the AI must be designed using algorithms whose methods can be applied to a wide range of games. The AI must also be an ongoing process, that can adapt to its current state rather than the output of previous states. For this reason, open loop techniques are often most effective.

A popular method for developing GGP AI is the Monte Carlo tree search (MCTS) algorithm.[15] Often used together with the UCT method (Upper Confidence Bound applied to Trees), variations of MCTS have been proposed to better play certain games, as well as to make it compatible with video game playing.[16][17][18] Another variation of tree search algorithms used is the Directed Breadth First Search (DBS), in which a child node to the current state is created for each available action, and visits each child ordered by highest average reward, until either the game ends or runs out of time.[19] In each tree search method, the AI simulates potential actions and ranks each based on the average highest reward of each path, in terms of points earned.[15][19]

Assumptions[edit]

In order to interact with games, algorithms must operate under the assumption that games all share common characteristics. In the book Half-Real: Video Games Between Real Worlds and Fictional Worlds, Jesper Juul gives the following definition of games: Games are based on rules, they have variable outcomes, different outcomes give different values, player effort influences outcomes, the player is attached to the outcomes, and the game has negotiable consequences.[20] Using these assumptions, game playing AI can be created by quantifying the player input, the game outcomes, and how the various rules apply, and using algorithms to compute the most favorable path.[21]

Video games[edit]

General video game playing (GVGP)[22] is the design of artificial intelligence programs to be able to play more than one video game successfully. In recent years, some progress has been made, including the development of programs that can learn to play Atari 2600 games[23][24][25][26] as well as a program that can learn to play NES games.[27][28][29]

GVGP could potentially be used to create real video game AI automatically, as well as "to test game environments, including those created automatically using procedural content generation and to find potential loopholes in the gameplay that a human player could exploit".[22] GVGP has also been used to generate game rules, and estimate a game's quality based on Relative Algorithm Performance Profiles (RAPP), which compare the skill differentiation that a game allows between good AI and bad AI.[30]

Since 2014, the General Video Game Playing Competition (GVGAI) has offered a way for researchers and practitioners to test and compare their best general video game playing algorithms. The competition has an associated software framework including a large number of games written in the Video Game Description Language (VGDL). VGDL can be used to describe a game specifically for procedural generation of levels, using Answer Set Programming (ASP) and an Evolutionary Algorithm (EA). GVGP can then be used to test the validity of procedural levels, as well as the difficulty or quality of levels based on how an agent performed.[31]

The games used in GVGP are, for now, often 2 dimensional arcade games, as they are the simplest and easiest to quantify.[32] To simplify the process of creating an AI that can interpret video games, games for this purpose are written in Video Game Description Language (VGDL), which is a coding language using simple semantics and commands that can easily be parsed.

See also[edit]

References[edit]

  1. ^ a b General Game Playing: Overview of the AAAI Competition by Michael Genesereth, Nathaniel Love and Barney Pell.
  2. ^ GGP Server, platform for competition of general game playing systems.
  3. ^ Dresden GGP Server, platform for competition of general game playing systems with automatic scheduling of matches.
  4. ^ "General Game Playing". www.general-game-playing.de.
  5. ^ Information about Fluxplayer, the winner of the 2nd International General Game Playing competition.
  6. ^ Information about CADIAPlayer, more information about the winner of the 3rd, 4th, and 8th International General Game Playing competitions.
  7. ^ Sancho is GGP Champion 2014!, winner of the 2014 International General Game Playing competition.
  8. ^ Barney Pell's research on computer game playing.
  9. ^ "Metagame and General Game Playing". Metagame and General Game Playing. Retrieved 27 March 2016.
  10. ^ Available: Universal Game Engine email to comp.ai.games by Jeff Mallett, 10-Dec-1998.
  11. ^ "Zillions of Games - Who Are We?". www.zillions-of-games.com. Retrieved 2017-11-16.
  12. ^ "AiAi Home Page – Stephen Tavener". mrraow.com. Retrieved 2017-11-16.
  13. ^ "Ai Ai announcement thread". BoardGameGeek. Retrieved 2017-11-16.
  14. ^ "The PolyGamo Player Project | Programming Languages and General Players for Abstract Games and Puzzles". www.polyomino.com. Retrieved 2017-11-16.
  15. ^ a b "Monte-Carlo Tree Search for General Game Playing". ResearchGate. Retrieved 2016-04-01.
  16. ^ Finnsson, Hilmar (2012). "Generalized Monte-Carlo Tree Search Extensions for General Game Playing". Proceedings of the Twenty-Sixth AAAI Conference on Artificial Intelligence.
  17. ^ Frydenberg, Frederik; Anderson, Kasper R.; Risi, Sebastian; Togelius, Julian. "Investigating MCTS Modifications in General Video Game Playing" (PDF).
  18. ^ M. Swiechowski; J. Mandziuk; Y. S. Ong, "Specialization of a UCT-based General Game Playing Program to Single-Player Games," in IEEE Transactions on Computational Intelligence and AI in Games, vol.PP, no.99, pp.1-1 doi: 10.1109/TCIAIG.2015.2391232
  19. ^ a b Perez, Diego; Dieskau, Jens; Hünermund, Martin. "Open Loop Search for General Video Game Playing" (PDF).
  20. ^ Jesper Juul. Half-Real: Video Games Between Real Rules and Fictional Worlds. MIT Press, 2005.
  21. ^ Levine, John; Congdon, Clare Bates; Ebner, Marc; Kendall, Graham; Lucas, Simon M.; Miikkulainen Risto, Schaul; Tom, Thompson; Tommy. "General Video Game Playing" (PDF).
  22. ^ a b Levine, John; Congdon, Clare Bates; Ebner, Marc; Kendall, Graham; Lucas, Simon M.; Miikkulainen, Risto; Schaul, Tom; Thompson, Tommy (2013). "General Video Game Playing". Artificial and Computational Intelligence in Games. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik. 6: 77–83. Retrieved 25 April 2015.
  23. ^ Mnih, Volodymyr; Kavukcuoglu, Koray; Silver, David; Graves, Alex; Antonoglou, Ioannis; Wierstra, Daan; Riedmiller, Martin (2013). "Playing Atari with Deep Reinforcement Learning" (PDF). Neural Information Processing Systems Workshop 2013. Retrieved 25 April 2015.
  24. ^ Mnih, Volodymyr; Kavukcuoglu, Koray; Silver, David; Rusu, Andrei A.; Veness, Joel; Hassabis, Demis; Bellemare, Marc G.; Graves, Alex; Riedmiller, Martin; Fidjeland, Andreas K.; Stig Petersen, Georg Ostrovski; Beattie, Charles; Sadik, Amir; Antonoglou, Ioannis; King, Helen; Kumaran, Dharshan; Wierstra, Daan; Legg, Shane (26 February 2015). "Human-level control through deep reinforcement learning". Nature. 518: 529–533. doi:10.1038/nature14236. PMID 25719670.
  25. ^ Korjus, Kristjan; Kuzovkin, Ilya; Tampuu, Ardi; Pungas, Taivo (2014). "Replicating the Paper "Playing Atari with Deep Reinforcement Learning"" (PDF). University of Tartu. Retrieved 25 April 2015.
  26. ^ Guo, Xiaoxiao; Singh, Satinder; Lee, Honglak; Lewis, Richard L.; Wang, Xiaoshi (2014). "Deep Learning for Real-Time Atari Game Play Using Offline Monte-Carlo Tree Search Planning" (PDF). NIPS Proceedingsβ. Conference on Neural Information Processing Systems. Retrieved 25 April 2015.
  27. ^ Murphy, Tom (2013). "The First Level of Super Mario Bros. is Easy with Lexicographic Orderings and Time Travel ... after that it gets a little tricky." (PDF). SIGBOVIK. Retrieved 25 April 2015.
  28. ^ Murphy, Tom. "learnfun & playfun: A general technique for automating NES games". Retrieved 25 April 2015.
  29. ^ Teller, Swizec (October 28, 2013). "Week 2: Level 1 of Super Mario Bros. is easy with lexicographic orderings and". A geek with a hat. Retrieved 25 April 2015.
  30. ^ Nielsen, Thorbjørn S.; Barros, Gabriella A. B.; Togelius, Julian; Nelson, Mark J. "Towards generating arcade game rules with VGDL" (PDF).
  31. ^ Neufeld, Xenija; Mostaghim, Sanaz; Perez-Liebana, Diego. "Procedural Level Generation with Answer Set Programming for General Video Game Playing" (PDF).
  32. ^ Levine, John; Congdon, Clare Bates; Ebner, Marc; Kendall, Graham; Lucas, Simon M.; Miikkulainen Risto, Schaul; Tom, Thompson; Tommy. "General Video Game Playing" (PDF).

External links[edit]

See also the CS227B - General Game Playing course page, GGP.org, GGP.org GitHub page, and games.stanford.edu.

Video[edit]