This reminded me of Tents [0], which is one of the games in Simon's puzzle collection that I reach for while waiting for code to compile.
Someone should add this game! Simon has very good developer documentation [1], and the code is very cleanly written C. Seriously, every C developer should take a look at it, it is inspiring [2].
[1] https://www.chiark.greenend.org.uk/~sgtatham/puzzles/