Lurker News
Hello, HN - I wanted to share this puzzle game I made during my vacation.

I'm rather fond of the pipes puzzle where your goal is to restore a scrambled network of connections by rotating tiles. It's usually played on a grid of squares and this all started when I decided to make a programmatic solver for that kind of puzzle. Then I realized that with some minor changes the solver could generate new puzzle instances. I thought about what kind of puzzle to make and someone suggested a hexagonal grid. Adapting the generator wasn't too hard but then I had to create a way to play this variant. So I did just that =).
I find hexagonal pipes a bit more difficult than the square variant because there's a larger variety of possible tile shapes. For an extra challenge I implemented wrap mode where the board can connect to itself (right to left and top to bottom), so there are no convenient outer walls to start from.
The site is made with Svelte Kit, its code is available on github at <https://github.com/gereleth/hexapipes>.
Hope you enjoy playing =).

Comments (161) 65 threads

Show all comments

Showing thread 2 of 65

mdavis68903 replies#
Great game!

I humbly suggest that you flesh out the rules just a bit more. I struggled to figure out if pipes were allowed to run out of bounds, whether they all had to be connected into a single network, and the significance of the bulb-ended ones. I'm not totally dense and could make some guesses, but this still made the puzzle less than approachable for me at first. Basically I just guessed at these things, tried to see if I could solve one, and once I did and saw my complete solution all was clear. But why not state these things up front? Or maybe that's part of the puzzle? :-)
My first solve took 9min, then 3, then 1.5min for my third.

seanalltogether#
This was exactly the same for me. I wasn't sure if all pipes had to be water tight or not. Once I understood what the actual constraints were I could solve the next ones quicker.
gereleth3 replies#
Fair enough, I'll think how to word all this.
mdavis68901 reply#
- All sections must be connected into a single, contiguous network. - The whole network is contained in the grid, and no pipes may run outside the grid. - Bulb-shaped pipes with a single connection are terminations (dead-ends).
mdavis6890#
I'll agree with other commenters that actually just showing a complete solution is better. Or both!
JelteF1 reply#
I think simply having an image of what a solved network looks like would help a lot.
Bootvis#
Agreed, I didn’t bother reading the rules and just started clicking. I doubt I would read the rules even if they were written perfectly.
hombre_fatal#
a pic of a before and after puzzle would answer these questions intuitively as well.
jonny_eh#
Those kinds of edge cases can be easily overlooked by people that play a lot of these types of puzzle games. Great feedback.