Skip to main content
QUICK REVIEW

[Paper Review] The Complexity of Clickomania

Thérèse Biedl, Erik D. Demaine|ArXiv.org|Jul 21, 2001
Artificial Intelligence in GamesComputer Science3 references6 citations
TL;DR

This paper investigates the computational complexity of Clickomania, a popular puzzle game involving removing connected groups of same-colored blocks from a grid. It proves that while one-column puzzles can be solved in linear time for two colors and polynomial time for more colors, deciding whether a puzzle is fully solvable is NP-complete for two columns with five colors or five columns with three colors, establishing fundamental hardness results for the game's algorithmic structure.

ABSTRACT

We study a popular puzzle game known variously as Clickomania and Same Game. Basically, a rectangular grid of blocks is initially colored with some number of colors, and the player repeatedly removes a chosen connected monochromatic group of at least two square blocks, and any blocks above it fall down. We show that one-column puzzles can be solved, i.e., the maximum possible number of blocks can be removed, in linear time for two colors, and in polynomial time for an arbitrary number of colors. On the other hand, deciding whether a puzzle is solvable (all blocks can be removed) is NP-complete for two columns and five colors, or five columns and three colors.

Motivation & Objective

  • To determine the computational complexity of solving Clickomania puzzles under various grid and color constraints.
  • To analyze whether the decision problem—whether all blocks can be removed—is tractable or NP-complete.
  • To explore the boundary between tractable and intractable instances, particularly focusing on small numbers of columns and colors.
  • To establish polynomial-time algorithms for one-column Clickomania, especially for two-color instances.
  • To investigate the complexity of optimization and decision variants of the game, including score-based versions.

Proposed method

  • Reduces the one-column Clickomania problem to context-free grammar parsing, enabling polynomial-time solutions via dynamic programming.
  • Uses a dynamic programming approach to reduce the optimization problem (maximizing removed blocks) to multiple decision problems.
  • Constructs a reduction from 3-SAT to Clickomania using a complex block configuration with locks, keys, and barriers to simulate logical clauses.
  • Employs a barrier mechanism with bombs and colored blocks to enforce logical dependencies between variable assignments and clause satisfaction.
  • Designs a puzzle layout with variable-specific keys and clause-specific locks, where solvability corresponds exactly to a satisfying assignment of the 3-SAT formula.
  • Proves NP-completeness for two-color, five-column puzzles by encoding a 3-SAT instance into a Clickomania board with equivalent solvability.

Experimental results

Research questions

  • RQ1Is the decision problem of whether all blocks can be removed in Clickomania solvable in polynomial time for one-column puzzles with two colors?
  • RQ2What is the complexity of Clickomania when the number of columns is fixed at two, but the number of colors increases?
  • RQ3Can the NP-completeness of Clickomania be established for small, fixed numbers of columns and colors, such as two columns with five colors or five columns with three colors?
  • RQ4Is there a polynomial-time algorithm for solving one-column Clickomania with an arbitrary number of colors?
  • RQ5What is the complexity of the score-based variant of Clickomania, where removing a group of size n yields (n−2)² points?

Key findings

  • One-column Clickomania with two colors can be solved in linear time, establishing a tractable case for the problem.
  • One-column Clickomania with an arbitrary number of colors can be solved in polynomial time using context-free grammar parsing techniques.
  • The decision version of Clickomania is NP-complete for two columns and five colors, demonstrating intractability even with a small number of columns.
  • The decision version is also NP-complete for five columns and three colors, further narrowing the boundary of tractability.
  • The NP-completeness results are proven via a reduction from 3-SAT, using a carefully constructed block layout with locks, keys, and barriers to simulate logical clauses.
  • The paper leaves open the complexity of two-color Clickomania with two columns, which remains unresolved.

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.