Show HN: Pipes puzzle (a.k.a. Net) on a hexagonal grid (opens in a new tab)hexapipes.vercel.app
537 pointsI'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 4 of 65
You might consider implementing the traditional 3 mouse button controls (rotate left, mark correct, rotate right). If you can keep the Firefox context menu from popping up.
Maybe there's a way to support wrapping, and help the player understand which edge wraps to which? Maybe affecting the shape?
Related: 5 days ago "Simon Tatham's Portable Puzzle Collection (greenend.org.uk)": https://news.ycombinator.com/item?id=32170592
My wrap puzzles show an infinite tiled grid, so there shouldn't be questions about which edge wraps where. There are no edges, tiles just start repeating after a while. Maybe I didn't understand your question about wrapping?
Continue this thread — 2 replies
This will scratch my nostalgia itch for a good while.