Skip to content
Surf Wiki
Save to docs
technology/computing

From Surf Wiki (app.surf) — the open knowledge base

General game playing

Ability of artificial intelligence to play different games


Summary

Ability of artificial intelligence to play different games

General game playing (GGP) is the design of artificial intelligence programs to be able to play more than one game successfully. 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 instance, a chess-playing computer program cannot play checkers. General game playing is considered as a necessary milestone on the way to artificial general intelligence.

General video game playing (GVGP) is the concept of GGP adjusted to the purpose of playing video games. For video games, game rules have to be either learnt over multiple iterations by artificial players like TD-Gammon, or are predefined manually in a domain-specific language and sent in advance to artificial players like in traditional GGP. Starting in 2013, significant progress was made following the deep reinforcement learning approach, including the development of programs that can learn to play Atari 2600 games as well as a program that can learn to play Nintendo Entertainment System games.

The first commercial usage of general game playing technology was Zillions of Games in 1998. General game playing was also proposed for trading agents in supply chain management there under price negotiation in online auctions from 2003 onwards.

History

In 1992, Barney Pell defined the concept of Meta-Game Playing and developed the "MetaGame" system. This was the first program to automatically generate chess-like game rules, and one of the earliest programs to use automated game generation. Pell then developed the system Metagamer. This system was able to play a number of chess-like games, given game rules definition in a special language called Game Description Language (GDL), without any human interaction once the games were generated.

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. 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.

In 1998, z-Tree was developed by Urs Fischbacher. z-Tree is the first and the most cited software tool for experimental economics. z-Tree allows the definition of game rules in z-Tree-language for game-theoretic experiments with human subjects. It also allows definition of computer players, which participate in a play with human subjects.

In 2005, the Stanford Project General Game Playing was established.

In 2012, the development of PyVGDL started.

GGP implementations

Stanford project

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 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. So far, the following programs were victorious:

YearNameDeveloperInstitutionRef
2005CluneplayerJim CluneUCLA
2006FluxplayerStephan Schiffel and Michael ThielscherDresden University of Technology
2007CadiaplayerYngvi Björnsson and Hilmar FinnssonReykjavik University
2008CadiaplayerYngvi Björnsson, Hilmar Finnsson and Gylfi Þór GuðmundssonReykjavik University
2009AryJean MéhatParis 8 University
2010AryJean MéhatParis 8 University
2011TurboTurtleSam Schreiber
2012CadiaplayerHilmar Finnsson and Yngvi BjörnssonReykjavik University
2013TurboTurtleSam Schreiber
2014SanchoSteve Draper and Andrew Rose
2015GalvaniseRichard Emslie
2016WoodStockEric PietteArtois University

Other approaches

Other general game playing software that use their own languages for defining game rules include:

SystemYearDescription
FRAMASI2009Developed for general game playing and economic experiments by Rustam Tagiew.
AiAi2015-2017Developed by Stephen Tavener (previous Zillions developer).
PolyGamo Player2017Released by David M. Bennett in September 2017 based on the Unity game engine.
Regular Boardgames2019Developed by Jakub Kowalski, Marek Szykuła, and their team at University of Wrocław.
Ludii2020Released by Cameron Browne and his team at Maastricht University as part of the ERC-funded Digital Ludeme Project.

GVGP implementations

Reinforcement learning

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". 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.

Video Game Description Language

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) 1980s-era arcade and console games are used instead of the board games used in the GGP competition. It 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), which should not be confused with GDL and is a coding language using simple semantics and commands that can easily be parsed. One example for VGDL is PyVGDL developed in 2013.

Algorithms

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. Recent GGP systems such as Regular Boardgames (RBG) and Ludii have explored alternative rule representations to optimize reasoning efficiency and support a broader variety 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.{{Cite journal|title=Recent Advances in General Game Playing|journal=The Scientific World Journal|date=2015 |volume=2015 |publisher= Hindawi Publishing Corporation

A popular method for developing GGP AI is the Monte Carlo tree search (MCTS) algorithm. 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. 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. 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.

Assumptions

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. 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.

References

References

  1. (1992). "Metagame: a new challenge for games and learning.".
  2. (1996). "A Strategic Metagame Player for General Chess-Like Games". Computational Intelligence.
  3. (15 June 2005). "General Game Playing: Overview of the AAAI Competition". AI Magazine.
  4. (2019). "Proceedings of the 14th International Conference on the Foundations of Digital Games".
  5. (2013). "Playing Atari with Deep Reinforcement Learning". [[Conference on Neural Information Processing Systems.
  6. (August 2013). "2013 IEEE Conference on Computational {{Proper name".
  7. (2013). "General Video Game Playing". Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik.
  8. (2013-06-14). "The Arcade Learning Environment: An Evaluation Platform for General Agents". Journal of Artificial Intelligence Research.
  9. (2014). "Replicating the Paper "Playing Atari with Deep Reinforcement Learning"". [[University of Tartu]].
  10. (2014). "Deep Learning for Real-Time Atari Game Play Using Offline Monte-Carlo Tree Search Planning". [[Conference on Neural Information Processing Systems]].
  11. (2013). "The First Level of Super Mario Bros. is Easy with Lexicographic Orderings and Time Travel ... after that it gets a little tricky.". SIGBOVIK.
  12. "learnfun & playfun: A general technique for automating NES games".
  13. (October 28, 2013). "Week 2: Level 1 of Super Mario Bros. is easy with lexicographic orderings and".
  14. (2003). "Toward the Development of an Intelligent Agent for the Supply Chain Management Game of the 2003 Trading Agent Competition". University of Minnesota.
  15. (2009). "From general game descriptions to a market specification language for general trading agents". Springer.
  16. (8 March 2019). "AGAPE - An Auction LanGuage for GenerAl Auction PlayErs".
  17. (2019). "General Game Playing B-to-B Price Negotiations". CEUR Workshop Proceedings.
  18. [http://www.barneypell.com/games_research.html Barney Pell's research on computer game playing] {{Webarchive. link. (2007-08-12 .)
  19. "Metagame and General Game Playing".
  20. link. (2012-11-03 email to comp.ai.games by Jeff Mallett, 10-Dec-1998.)
  21. "UZH - z-Tree - Zurich Toolbox for Readymade Economic Experiments".
  22. (1 March 2007). "Cooperation in Symmetric and Asymmetric Prisoner's Dilemma Games". Social Science Research Network.
  23. (7 February 2020). "schaul/py-vgdl".
  24. [https://sourceforge.net/apps/trac/ggpserver/ GGP Server] {{Webarchive. link. (2014-02-21 , platform for competition of general game playing systems.)
  25. [http://130.208.241.192/ggpserver/ Dresden GGP Server] {{Webarchive. link. (2013-04-07 , platform for competition of general game playing systems with automatic scheduling of matches.)
  26. "General Game Playing".
  27. [http://www.general-game-playing.de/research.html Information about Fluxplayer] {{Webarchive. link. (2011-07-19 , the winner of the 2nd International General Game Playing competition.)
  28. [http://cadia.ru.is/wiki/public:cadiaplayer:main Information about CADIAPlayer] {{Webarchive. link. (2011-07-22 , more information about the winner of the 3rd, 4th, and 8th International General Game Playing competitions.)
  29. [http://sanchoggp.blogspot.co.uk/2014/07/sancho-is-ggp-champion-2014.html Sancho is GGP Champion 2014!] {{Webarchive. link. (2015-12-22 , winner of the 2014 International General Game Playing competition.)
  30. (2009). "Towards a framework for management of strategic interaction".
  31. (2011). "Strategische Interaktion realer Agenten Ganzheitliche Konzeptualisierung und Softwarekomponenten einer interdisziplinären Forschungsinfrastruktur".
  32. "Zillions of Games - Who Are We?".
  33. "AiAi Home Page – Stephen Tavener".
  34. "Ai Ai announcement thread". BoardGameGeek.
  35. "The PolyGamo Player Project {{!}} Programming Languages and General Players for Abstract Games and Puzzles".
  36. (2019-07-17). "Regular Boardgames". Proceedings of the AAAI Conference on Artificial Intelligence.
  37. (2020). "2020 IEEE Conference on Games (CoG)".
  38. "Ludii Portal {{!}} Home of the Ludii General Game System".
  39. "Digital Ludeme Project {{!}} Modelling the Evolution of Traditional Games".
  40. (2020). "European Conference on Artificial Intelligence (ECAI 2020), Santiago de Compestela".
  41. "Towards generating arcade game rules with VGDL".
  42. (January 2024}} 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.{{Cite web). "Procedural Level Generation with Answer Set Programming for General Video Game Playing".
  43. "Monte-Carlo Tree Search for General Game Playing".
  44. Finnsson, Hilmar. (2012). "Generalized Monte-Carlo Tree Search Extensions for General Game Playing". Proceedings of the Twenty-Sixth AAAI Conference on Artificial Intelligence.
  45. "Investigating MCTS Modifications in General Video Game Playing".
  46. 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
  47. "Changing the root node from a previous game step.".
  48. "Open Loop Search for General Video Game Playing".
  49. Jesper Juul. Half-Real: Video Games Between Real Rules and Fictional Worlds. MIT Press, 2005.
  50. "General Video Game Playing".
Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about General game playing — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report