Cal's Favourite Game Is NP-Hard: On the Hardness of Tenebrae Lux's Sliding Puzzles

We study the computational complexity of a generalised version of the minigame Tenebrae Lux, featured in Grand Theft Auto VI. An instance of Tenebrae Lux consists of an $h \times w$ board whose cells are either empty or contain a pyramid, a stack, or a flat. Initially, no pyramid is orthogonally adjacent to a stack or a flat. A move selects a pyramid or stack and slides it in a cardinal direction through consecutive empty cells until it reaches the board boundary or stops immediately before another piece. Each move must change the selected piece's position. At its destination, a moved pyramid destroys all orthogonally adjacent stacks and flats, and is itself destroyed if it destroyed a stack. A moved stack destroys all orthogonally adjacent pyramids, and is itself destroyed if it destroyed a pyramid. Flats cannot move. Tenebrae Lux asks whether there exists a finite sequence of moves that empties all cells; we call such a sequence clearing. We show that this problem is NP-hard, even on boards with exactly one pyramid and one stack, via a reduction from Hamiltonian Cycle on simple 2-out-regular directed graphs. Since solvable boards with a bounded number of movable pieces admit clearing sequences of polynomial length, this restriction is in fact NP-complete. In general, the problem lies in PSPACE, and it is solvable in polynomial time when the total number of pieces is bounded. We further show that there always exists a clearing sequence when there are no flats and the numbers of pyramids and stacks are equal; our proof is constructive and yields a clearing sequence of at most $k(w+2)$ moves in polynomial time, where $k$ is the number of pyramids.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-11-30
DOI
https://doi.org/10.48550/arxiv.2611.40233
Primary Topic
Advanced Graph Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Cal's Favourite Game Is NP-Hard: On the Hardness of Tenebrae Lux's Sliding Puzzles

Sarosh Adenwalla, Ziad Ismaili Alaoui
arXiv
Advanced Graph Theory Research
preprint

Cal's Favourite Game Is NP-Hard: On the Hardness of Tenebrae Lux's Sliding Puzzles

Sarosh Adenwalla, Ziad Ismaili Alaoui
preprint en

Abstract

We study the computational complexity of a generalised version of the minigame Tenebrae Lux, featured in Grand Theft Auto VI. An instance of Tenebrae Lux consists of an $h \times w$ board whose cells are either empty or contain a pyramid, a stack, or a flat. Initially, no pyramid is orthogonally adjacent to a stack or a flat. A move selects a pyramid or stack and slides it in a cardinal direction through consecutive empty cells until it reaches the board boundary or stops immediately before another piece. Each move must change the selected piece's position. At its destination, a moved pyramid destroys all orthogonally adjacent stacks and flats, and is itself destroyed if it destroyed a stack. A moved stack destroys all orthogonally adjacent pyramids, and is itself destroyed if it destroyed a pyramid. Flats cannot move. Tenebrae Lux asks whether there exists a finite sequence of moves that empties all cells; we call such a sequence clearing. We show that this problem is NP-hard, even on boards with exactly one pyramid and one stack, via a reduction from Hamiltonian Cycle on simple 2-out-regular directed graphs. Since solvable boards with a bounded number of movable pieces admit clearing sequences of polynomial length, this restriction is in fact NP-complete. In general, the problem lies in PSPACE, and it is solvable in polynomial time when the total number of pieces is bounded. We further show that there always exists a clearing sequence when there are no flats and the numbers of pyramids and stacks are equal; our proof is constructive and yields a clearing sequence of at most $k(w+2)$ moves in polynomial time, where $k$ is the number of pyramids.

arXiv
University of Liverpool (GB), Philipps University of Marburg (DE)
Advanced Graph Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Cal's Favourite Game Is NP-Hard: On the Hardness of Tenebrae Lux's Sliding Puzzles — Sarosh Adenwalla, Ziad Ismaili Alaoui · arXiv (2026) | TGRS Research Map | TGRS