[Paper Review] Computational Complexity of Games and Puzzles
This thesis applies computational complexity theory to analyze the hardness of puzzle games, using reductions from known NP- and PSPACE-complete problems to prove that Hexiom, Cut the Rope, Back to Bed, and others are computationally hard. It establishes that these games are NP-hard (via 3-CNFSAT) or PSPACE-complete (via TQBF), demonstrating their intrinsic algorithmic difficulty through gadget-based constructions.
In this thesis, we survey techniques and results from the study of Complexity Theory and Games. We then apply these techniques to obtain new results for previously unstudied games. Our contributions in the games Hexiom, Cut the Rope, and Back to Bed may be helpful in further studies by exploiting structure common to several games. We also highlight some interesting paths for further study related to uncertainty that have yet to receive thorough study given their prevalence in today's games.
Motivation & Objective
- To investigate the computational complexity of previously unstudied puzzle games using formal complexity theory.
- To apply established frameworks from complexity theory—such as reductions, circuit SAT, and TQBF—to new games like Hexiom, Cut the Rope, and Back to Bed.
- To identify common structural patterns across games that can be exploited for complexity proofs.
- To explore open research directions, particularly regarding uncertainty and hidden information in modern games.
- To demonstrate that seemingly simple puzzle mechanics can encode complex logical problems, implying inherent algorithmic difficulty.
Proposed method
- Used NP-hardness and PSPACE-hardness reduction frameworks based on 3-CNFSAT, Circuit SAT, and TQBF to encode logical formulas into game mechanics.
- Designed custom game-specific gadgets (e.g., variable selectors, switches, doors, path segments) to simulate logic gates and constraints.
- Mapped logical expressions (e.g., $(\lnot x \land y) \lor x$) into physical puzzle configurations in Hexiom, ensuring solvability iff the formula is satisfiable.
- Employed parity and excess cell accounting to ensure solvability only when the logical formula evaluates correctly, especially in Hexiom.
- Adapted the TQBF framework to Back to Bed using patrolling enemies as door mechanisms and teleports to eliminate wiring needs.
- Validated constructions using annotated instance examples and visualized gadget arrangements across multiple games.
Experimental results
Research questions
- RQ1Is the game Hexiom computationally hard, and if so, what complexity class does it belong to?
- RQ2Can the mechanics of Cut the Rope be used to simulate 3-CNFSAT, proving NP-hardness?
- RQ3How can the two-player, perfect-information mechanics of Back to Bed be used to simulate TQBF, establishing PSPACE-completeness?
- RQ4To what extent do common puzzle game mechanics—like movement, switches, and pathing—encode universal computational problems?
- RQ5What role does hidden information or uncertainty play in the complexity of modern games, and why is it underexplored?
Key findings
- Hexiom was proven to be NP-hard via a reduction from 3-CNFSAT, with solvability equivalent to the satisfiability of a logical formula.
- Cut the Rope was shown to be NP-hard using a 3-CNFSAT-based reduction, with gadgets simulating logical gates and variable assignments.
- Back to Bed was proven to be PSPACE-complete through a TQBF-based reduction, using patrolling enemies as dynamic door mechanisms.
- The game Offspring Fling was shown to be PSPACE-complete using a TQBF framework, with movement and carrying constraints encoding quantified Boolean formulas.
- HexCells and Triangular Akari were proven NP-hard using Circuit SAT reductions, with light propagation and tile placement simulating logic circuits.
- The thesis demonstrated that Hexiom’s excess cell and parity accounting mechanisms can be used to enforce correct logical evaluation, ensuring solvability only when the formula is true.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.