Plotting: a case study in lifted planning with constraints

Joan Espasa*, Ian James Miguel, Peter Nightingale, András Z. Salamon, Mateu Villaret

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

We study a planning problem based on Plotting, a tile-matching puzzle video game published by Taito in 1989. The objective of this turn-based game is to remove a target number of coloured blocks from a grid by sequentially shooting blocks into the same grid. Plotting features complex transitions after every shot: various blocks are affected directly, while others can be indirectly affected by gravity. We consider modelling and solving Plotting from two perspectives. The puzzle is naturally cast as an AI Planning problem and we first discuss modelling the problem using the Planning Domain Definition Language (PDDL). We find that a model in which planning actions correspond to player actions is inefficient with a grounding-based state-of-the-art planner. However, with a more fine-grained action model, where each change of a block is a planning action, solving performance is dramatically improved. We also describe two lifted constraint models, able to capture the inherent complexities of Plotting and enabling the application of efficient solving approaches from SAT and CP. Our empirical results with these models demonstrates that they can compete with, and often exceed, the performance of the dedicated planning solvers, suggesting that the richer languages available to constraint modelling can be of benefit when considering planning problems with complex changes of state. CP and SAT solvers solved almost all of the largest and most challenging instances within 1 hour, whereas the best planning approach solved approximately 30%. Finally, the flexibility provided by the constraint models allows us to easily curate interesting levels for human players.
Original languageEnglish
Number of pages40
JournalConstraints
VolumeFirst online
Early online date13 Sept 2024
DOIs
Publication statusE-pub ahead of print - 13 Sept 2024

Keywords

  • Case study
  • AI planning
  • Modelling
  • Constraint programming

Fingerprint

Dive into the research topics of 'Plotting: a case study in lifted planning with constraints'. Together they form a unique fingerprint.

Cite this