English

Winning Snake: Design Choices in Multi-Shot ASP

Artificial Intelligence 2025-01-22 v1

Abstract

Answer set programming is a well-understood and established problem-solving and knowledge representation paradigm. It has become more prominent amongst a wider audience due to its multiple applications in science and industry. The constant development of advanced programming and modeling techniques extends the toolset for developers and users regularly. This paper demonstrates different techniques to reuse logic program parts (multi-shot) by solving the arcade game snake. This game is particularly interesting because a victory can be assured by solving the underlying NP-hard problem of Hamiltonian Cycles. We will demonstrate five hands-on implementations in clingo and compare their performance in an empirical evaluation. In addition, our implementation utilizes clingraph to generate a simple yet informative image representation of the game's progress.

Keywords

Cite

@article{arxiv.2408.08150,
  title  = {Winning Snake: Design Choices in Multi-Shot ASP},
  author = {Elisa Böhl and Stefan Ellmauthaler and Sarah Alice Gaggl},
  journal= {arXiv preprint arXiv:2408.08150},
  year   = {2025}
}

Comments

17 pages, 3 figures, to appear in Theory and Practice of Logic Programming (TPLP), Proceedings of ICLP 2024

R2 v1 2026-06-28T18:13:47.034Z