English

PackIt! Gamified Rectangle Packing

Combinatorics 2024-05-17 v2 Data Structures and Algorithms Computer Science and Game Theory

Abstract

We present and analyze PackIt!, a turn-based game consisting of packing rectangles on an n×nn \times n grid. PackIt! can be easily played on paper, either as a competitive two-player game or in \emph{solitaire} fashion. On the tt-th turn, a rectangle of area tt or t+1t+1 must be placed in the grid. In the two-player format of PackIt! whichever player places a rectangle last wins, whereas the goal in the solitaire variant is to perfectly pack the n×nn \times n grid. We analyze conditions for the existence of a perfect packing over n×nn \times n, then present an automated reasoning approach that allows finding perfect games of PackIt! up to n=50n = 50 which includes a novel SAT-encoding technique of independent interest, and conclude by proving an NP-hardness result.

Keywords

Cite

@article{arxiv.2403.12195,
  title  = {PackIt! Gamified Rectangle Packing},
  author = {Thomas Garrison and Marijn J. H. Heule and Bernardo Subercaseaux},
  journal= {arXiv preprint arXiv:2403.12195},
  year   = {2024}
}

Comments

Accepted at FUN with Algorithms 2024