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
gereleth1 reply#
Haha, way to go, this is awesome. Did it solve it all without human input? Can it do wraps?

Sorry about your sleep schedule).

corruptio#
Yup, it finds the play area and starts clicking. I haven' tried the wrapped version yet, but i think the nonwrap is funner. Also I wouldn't mind a 50x50 .....
adenozine#
40x40???? Wow, that would take me several hours if not a workday or more. Goodness lord
totalview#
Thought I was clever, until I saw the grid size went to 40…
vesche1 reply#
Very fun, although I don't really feel like it takes much skill. Seems to be a chill puzzle experience and doesn't scratch the same brain itch as something like a Rubik's cube or Loopover (https://loopover.xyz/).

I did the 20x20 in 32:31.596 and now feel like I can close this tab :P

gereleth#
This loopover thing is hard... I unscrambled two lines and was quickly running out of movement freedom. =)

You can try the wrap variant for an extra challenge.

Load more comments