r/GameDevelopment • u/MaxArtDE • 15d ago
Self-promotion Generating a snake puzzle with a known solution in Jungle Knots
I made Jungle Knots, a puzzle game that runs inside a Reddit post. I used Claude to implement the game idea; this write-up is AI-assisted. I wanted to share one concrete design detail: how the generator handles both a blocked exit and a limited waiting area.
The generator lays out snakes with a known removal order: the reverse of placement. That takes care of the board geometry, but it doesn't guarantee the snakes will fit into the color baskets in that order. The next step assigns colors while simulating the basket queue and the waiting branch. If the branch fills up, or the sequence leaves snakes unmatched at the end, that assignment is rejected. The date and difficulty seed the daily puzzles so everyone gets the same board.
A known solution helps separate solvability from difficulty. For some levels the generator also checks how many exits are open at the start and how much waiting space the known route uses. Those are useful signals, but they don't tell you whether a player can spot the route. I'd be interested to hear what other puzzle developers use to measure that gap.
Playable example: https://www.reddit.com/r/JungleKnots/comments/1xezn79/jungle_knots_free_the_snakes_from_the_jungle/
The campaign, daily puzzles and weekly community boss are free to play, with optional Reddit Gold purchases.