Skip to main content Accessibility help
×
Hostname: page-component-cb9f654ff-65tv2 Total loading time: 0 Render date: 2025-08-23T12:36:07.110Z Has data issue: false hasContentIssue false

The Complexity of Clickomania

Published online by Cambridge University Press:  29 May 2025

Get access

Summary

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.

1. Introduction

Clickomania is a one-player game (puzzle) with the following rules. The board is a rectangular grid. Initially the board is full of square blocks each colored one of k colors. A group is a maximal connected monochromatic polyomino; algorithmically, start with each block as its own group, then repeatedly combine groups of the same color that are adjacent along an edge. At any step, the player can select (click) any group of size at least two. This causes those blocks to disappear, and any blocks stacked above them fall straight down as far as they can (the settling process). Thus, in particular, there is never an internal hole. There is an additional twist on the rules: if an entire column becomes empty of blocks, then this column is “removed,” bringing the two sides closer to each other (the column shifting process).

The basic goal of the game is to remove all of the blocks, or to remove as many blocks as possible. Formally, the basic decision question is whether a given puzzle is solvable: can all blocks of the puzzle be removed? More generally, the algorithmic problem is to find the maximum number of blocks that can be removed from a given puzzle. We call these problems the decision and optimization versions of Clickomania.

There are several parameters that influence the complexity of Clickomania. One obvious parameter is the number of colors. For example, the problem is trivial if there is only one color, or every block is a different color.

Information

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2002

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Book purchase

Temporarily unavailable

Accessibility standard: Unknown

Accessibility compliance for the PDF of this book is currently unknown and may be updated in the future.

Save book to Kindle

To save this book to your Kindle, first ensure no-reply@cambridge-org.demo.remotlog.com is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×