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
thaumasiotes1 reply#
Right-clicking locks a piece, but it also brings up a context menu that I need to get rid of. It would be nice if that didn't happen.
gereleth1 reply#
Are you on a Mac? I thought I got rid of this but I haven't tested on those.
thaumasiotes1 reply#
No, Windows 10.
gereleth#
I see, thanks for reporting.

This contextmenu issue is sure showing me the ugly side of frontend development :/

z9znz#
Well done! It was intially intimidating, but it quickly became clear that the limited options made it almost a no-brainer to solve.
bsmithers1 reply#
Love the game. Couple of nits on the site:

- changing puzzle size seems to break the back button - scroll behaviour is a bit strange
(Pixel 5, Chrome, if it helps)

gereleth#
Thanks for reporting, I'll look into this.
koshergweilo#
This would make a great hacking mini game. I got my average of 12 down under a minute so it's definitely engaging.

Load more comments