Skip to main content
QUICK REVIEW

[Paper Review] Gaming is a hard job, but someone has to do it!

Giovanni Viglietta|arXiv (Cornell University)|Jan 24, 2012
Artificial Intelligence in GamesComputer Science9 references12 citations
TL;DR

This paper establishes general metatheorems linking specific game mechanics—such as single-use paths, collectible items, and destructible elements—to computational complexity, applying them to prove NP-hardness or PSPACE-completeness in classic video games (1980–1998). It demonstrates that games like Tron, Pac-Man, and StarCraft are NP-hard due to structural constraints resembling NP-complete problems, using reductions from known hard problems via scalable level designs.

ABSTRACT

We establish some general schemes relating the computational complexity of a video game to the presence of certain common elements or mechanics, such as destroyable paths, collectible items, doors opened by keys or activated by buttons or pressure plates, etc. Then we apply such "metatheorems" to several video games published between 1980 and 1998, including Pac-Man, Tron, Lode Runner, Boulder Dash, Deflektor, Mindbender, Pipe Mania, Skweek, Prince of Persia, Lemmings, Doom, Puzzle Bobble~3, and Starcraft. We obtain both new results, and improvements or alternative proofs of previously known results.

Motivation & Objective

  • To identify recurring game mechanics that imply computational hardness in video games.
  • To develop general metatheorems that link specific mechanics to complexity classes like NP and PSPACE.
  • To apply these metatheorems to a broad set of classic, 'scriptless' video games from 1980–1998.
  • To provide new or improved proofs of hardness for well-known games such as Tron, Lemmings, and StarCraft.
  • To explore how removing key mechanics affects the complexity spectrum of a game.

Proposed method

  • Design scalable generalizations of classic video games to create infinite families of levels.
  • Use metatheorems that reduce known NP- or PSPACE-complete problems to game mechanics like location traversal and single-use paths.
  • Construct game levels with specific arrangements of walls, paths, and game elements to simulate logic gates or path constraints.
  • Apply reductions from problems like 3-SAT or Hamiltonian Path by encoding them into game mechanics such as destructible paths and collectible items.
  • Use light cycle trails in Tron to simulate single-use paths and enforce path traversal constraints.
  • Verify solvability conditions by ensuring that only one path through each vertex is possible, enforcing NP-hardness via path length and obstacle constraints.

Experimental results

Research questions

  • RQ1Which common game mechanics consistently lead to NP-hard or PSPACE-complete complexity in video games?
  • RQ2Can general metatheorems be derived to automatically infer the complexity of a game based on its mechanics?
  • RQ3Is the computational complexity of a game like Tron NP-hard, and can this be proven via a reduction from a known hard problem?
  • RQ4How does the removal of critical mechanics (e.g., destructible paths) affect the complexity of a game?
  • RQ5Can the same reduction framework be applied uniformly across diverse games such as Pac-Man, Lemmings, and StarCraft?

Key findings

  • Tron (1982) is proven NP-hard via a reduction using light cycle trails to simulate single-use paths and enforce location traversal.
  • The presence of single-use paths and location traversal features in a game’s mechanics can imply NP-hardness, as formalized in Metatheorem 1.
  • Games like Pac-Man, Lode Runner, and Boulder Dash are shown to be NP-hard through similar reductions involving path constraints and collectible items.
  • StarCraft is proven NP-hard by modeling a reduction from 3-SAT using Protoss and Terran units, where resource gathering and unit training enforce path traversal.
  • The construction in Tron ensures that the player must visit all required vertices, as the path length required exceeds the area of any single vertex, forcing full traversal.
  • The paper provides improved or alternative proofs for previously known hardness results in games like Lemmings and Doom, using a unified metatheorem framework.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.