,
Ian P. Gent
,
Peter Nightingale
,
Felix Ulrich-Oltean
,
Jack Waller
Creative Commons Attribution 4.0 International license
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.
@InProceedings{dang_et_al:LIPIcs.CP.2025.9,
author = {Dang, Nguyen and Gent, Ian P. and Nightingale, Peter and Ulrich-Oltean, Felix and Waller, Jack},
title = {{Constraint Models for Klondike}},
booktitle = {31st International Conference on Principles and Practice of Constraint Programming (CP 2025)},
pages = {9:1--9:20},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-380-5},
ISSN = {1868-8969},
year = {2025},
volume = {340},
editor = {de la Banda, Maria Garcia},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CP.2025.9},
URN = {urn:nbn:de:0030-drops-238702},
doi = {10.4230/LIPIcs.CP.2025.9},
annote = {Keywords: AI Planning, Modelling, Constraint Programming, Solitaire and Patience Games}
}
archived version