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

Earlier comments
swayvil3 replies#
My first, a 5x5, in 3:08

It was fun, but on the edge of annoying, which seems appropriate.

mkoryak#
my first 5x5 I couldn't solve in 4 minutes, then I gave up. This puzzle makes me angry.
WesleyJohnson#
2:37 for me, and I'm not terribly good at puzzles. I was getting frustrated and then it just kind of clicked. The color changing is incentivizing. I found it fun in general; might have to do a couple more...
TOMDM3 replies#
I finished my first on 1:33, starting from the edge and working in, moving to a different spot when I noticed too much flex was my strategy.

Given the authors note in this thread about each puzzle only having one solution probably means I stumbled onto a decent strategy

swayvil#
Ya, the edge is key. So are hexes that have minimal possible positions.

I did my second 5 in 3:08 too. Which is weird.

gereleth1 reply#
This is pretty much how I solve regular puzzles too. I can do most 5x5s in under 20 seconds. Too often did my debugging sessions devolve into puzzle marathons =).

Wrap variants are another story as they have no outer edges. Discovering which tile groups give initial clues there is pretty fun too (when the regular puzzles aren't much of a challenge any more).

klyrs#
> Too often did my debugging sessions devolve into puzzle marathons =).

This is why I suck at game development. Congratulations for getting it out the door!

Arrath#
I started in the top left corner and worked connections down from there. So far I have a solve yet to take over a minute.
dematz1 reply#
Fun game and nice site, it feels like to pipes what wordle is to words!
gereleth#
Compared to wordle, what an honour =). The site design actually comes from the default SvelteKit skeleton project. I was focused on the game part so I never changed it.
yesthisiswes#
Awesome puzzle. Great job!
top-flight1 reply#
Cool game. Can you provide an example of what a solution looks like?

Load more comments