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
harpersealtako#
Solved my first 5x5 in 1:54. At first I thought it would be really difficult but then I found a hex which could only go one way (a corner hex with V shape) and then from there the adjacent pipes could only orient one way. There were a few times where I had to think down a tree of possibilities (if this hex goes like this, then this hex can't possibly fit here because of a previously solved hex, therefore it must go like this instead), but never more than one or two steps. All in all it's a very satisfying puzzle format.
loganc23422 replies#
I have a minor nitpick to share. I’d like it if there was an option to hide the timer, because being under time pressure to solve a puzzle can stress me out. Overall, it’s a fun puzzle, though!
gereleth#
Thanks for sharing, I'll add that option (on the weekend most likely).
boosteri1 reply#
I'd like an opposite option.. where the timer runs out :-) maybe with a neat graphics of water flowing from the bulb starting point(s)
joeframbach1 reply#
You would enjoy Ant Run, which I played for hours on end in the late 90s. https://www.dosgames.com/game/ant-run. There is a browser-based emulator available here.
krallja#
I knew this game as Pipe Dream / Pipe Mania!
phaedrus1 reply#
Puzzle 850 (10x10) appears to be unsolvable? After fixing the rest of the tiles, I was left with a scrambled area in the top-middle with 3 loose ends. Even if the affected tiles were all adjacent and shape-compatible (no on both counts), there's no way to pair up 3 ends that doesn't leave one out.

My frustration with wasting time (23 hours; I slept on it) on an unsolvable puzzle is somewhat mitigated by the fact the problem taught me this: if you count the free ends and come up with an odd number, you can know immediately that the puzzle isn't solvable, without rotating any tiles. An even number doesn't prove the puzzle is solvable, but an odd number definitely indicates a problem.
Edit: Nevermind; there was a 4th loose end I was overlooking. Finding it led to getting unstuck & the puzzle was solvable after all.
Unfortunately due to the way the site works, I don't seem to be able to get a new 10x10 puzzle by refreshing the page? So I'm stuck on the unsolvable one. I can imagine saving the progress is a feature, but you should also add a "pass" or "skip" button. Oh - I just realized I can "hack" it by manually changing the number in the URL to something else, e.g. /10/851.
Before I realized the puzzle was unsolvable I was also looking for a button to randomize/reset the initial tile positions. I was thinking maybe I wasn't seeing the solution due to my preconceived ideas from already-placed tiles. That wouldn't have helped here, but maybe on a solvable one being able to re-randomize would help a player get unstuck.

gereleth1 reply#
Thanks for the feedback. I'm very sure all puzzles on the site are solvable. But a skip button makes total sense when one hits a deadend. I'll work it in when I have the time.

With a randomize button do you mean a complete reset to initial state? Or something like keep the locked tiles, reset the rest?

andkenneth#
+1, a reset button would be great, to go back to initial state entirely. Sometimes you know you've stuffed up the logic on the puzzle and seeing it fresh is the best option. I found myself searching for the button as well.
ranman2 replies#
Why are the SVG tiles specified to 599.99999999 instead of 600 or something? I think a SVGO optimizations run would reduce the size of the assets a tad.
Etheryte#
I would guess that the assets were made in Inkscape or comparable software where you work visually and don't actually look at the generated code.
gereleth1 reply#
There aren't really any assets though. I just create the svgs dynamically. Maybe I need to place some strategic `Math.round` calls here and there, never thought of this =).
ranman1 reply#
Yeah so if you can math.round or math.floor them a bit the paths are a lot cleaner - if you're dynamically creating them anyway though then I don't know that it gains you much performance. It might gain some performance on render for larger maps? Not sure.

Didn't get a chance to look at your source.

Load more comments