When quoting this document, please refer to the following
DOI: 10.4230/LIPIcs.FUN.2018.30
URN: urn:nbn:de:0030-drops-88210
URL: https://drops.dagstuhl.de/opus/volltexte/2018/8821/
 Go to the corresponding LIPIcs Volume Portal

### The Complexity of Escaping Labyrinths and Enchanted Forests

 pdf-format:

### Abstract

The board games The aMAZEing Labyrinth (or simply Labyrinth for short) and Enchanted Forest published by Ravensburger are seemingly simple family games.
In Labyrinth, the players move though a labyrinth in order to collect specific items. To do so, they shift the tiles making up the labyrinth in order to open up new paths (and, at the same time, close paths for their opponents). We show that, even without any opponents, determining a shortest path (i.e., a path using the minimum possible number of turns) to the next desired item in the labyrinth is strongly NP-hard. Moreover, we show that, when competing with another player, deciding whether there exists a strategy that guarantees to reach one's next item faster than one's opponent is PSPACE-hard.
In Enchanted Forest, items are hidden under specific trees and the objective of the players is to report their locations to the king in his castle. Movements are performed by rolling two dice, resulting in two numbers of fields one has to move, where each of the two movements must be executed consecutively in one direction (but the player can choose the order in which the two movements are performed). Here, we provide an efficient polynomial-time algorithm for computing a shortest path between two fields on the board for a given sequence of die rolls, which also has implications for the complexity of problems the players face in the game when future die rolls are unknown.

### BibTeX - Entry

```@InProceedings{schwahn_et_al:LIPIcs:2018:8821,
author =	{Florian D. Schwahn and Clemens Thielen},
title =	{{The Complexity of Escaping Labyrinths and Enchanted Forests}},
booktitle =	{9th International Conference on Fun with Algorithms (FUN 2018)},
pages =	{30:1--30:13},
series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN =	{978-3-95977-067-5},
ISSN =	{1868-8969},
year =	{2018},
volume =	{100},
editor =	{Hiro Ito and Stefano Leonardi and Linda Pagli and Giuseppe Prencipe},
publisher =	{Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik},