Skip to main navigation Skip to search Skip to main content

Constraint models for Klondike

Nguyen Dang*, Ian P. Gent*, Peter Nightingale*, Felix Ulrich-Oltean*, Jack Waller*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Klondike is the most famous single-player card game, and remains a challenging search problem even in the “thoughtful” variant where all card locations are known. We consider the full game of Klondike except for one restriction that the unusual move of “worrying back” is disallowed. This model is able to determine the winnability of all instances of the game and in practice does so in less than 2000 secs for 10,000 instances we tested, which no other known algorithm can achieve. On some instances, however, other techniques can produce answers more quickly. We use constraint modelling to produce schedules for running our constraint model in combination with other techniques. The combination outperforms any single solver across a range of time limits. Using this combination we are able to significantly improve the best estimate of winnability of Klondike without worrying back. Finally we show how we can use this work to also improve the estimate of winnability of the regular game of Klondike.

Original languageEnglish
Title of host publication31st international conference on principles and practice of constraint programming, CP 2025
EditorsMaria Garcia de la Banda
Place of PublicationSaarbrücken/Wadern
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
Pages1-20
Number of pages20
ISBN (Electronic)9783959773805
DOIs
Publication statusPublished - 8 Aug 2025
Event31st International Conference on Principles and Practice of Constraint Programming, CP 2025 - Glasgow, United Kingdom
Duration: 10 Aug 202515 Aug 2025
Conference number: 31
https://cp2025.a4cp.org/

Publication series

NameLeibniz international proceedings in informatics (LIPIcs)
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
Volume340
ISSN (Print)1868-8969

Conference

Conference31st International Conference on Principles and Practice of Constraint Programming, CP 2025
Abbreviated titleCP 2025
Country/TerritoryUnited Kingdom
CityGlasgow
Period10/08/2515/08/25
Internet address

Keywords

  • AI planning
  • Constraint programming
  • Modelling
  • Solitaire and patience games

Cite this