Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gereleth
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
1.
▲
by
gereleth
3y ago
This is a good start! Exactly like hexapipes began lol. I just wanted to make a solver to overcome my addiction to this puzzle. Come open a discussion on github if you have further questions or just want to share your progress =) https:&#x
2.
▲
by
gereleth
3y ago
I think the downloaded version of Penrose puzzles does not currently contain enough info to run a solver on it. Because the grid is different every time and this info is not present in the downloaded file. But I can tell you how it works fo
3.
▲
by
gereleth
3y ago
Hexapipes author here =). This is awesome! People kept mentioning Penrose grid to me but I didn't know where to even start with it. And then you went and made it happen! I admire the dedication it took, love collaborating with you! The
4.
▲
by
gereleth
4y ago
Haha, way to go, this is awesome. Did it solve it all without human input? Can it do wraps? Sorry about your sleep schedule).
5.
▲
by
gereleth
4y ago
I see, thanks for reporting. This contextmenu issue is sure showing me the ugly side of frontend development :/
6.
▲
by
gereleth
4y ago
Congrats! This is some amazing dedication =).
7.
▲
by
gereleth
4y ago
Sorry about this. I sometimes place them accidentally too. I have an idea of placing them with some kind of gesture - like touch and drag between tiles. That wouldn't interfere with tapping to rotate tiles. But on the other hand, I
8.
▲
by
gereleth
4y ago
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 t
9.
▲
by
gereleth
4y ago
Browser zoom kinda works. But yeah, adding better zoom/pan is in my backlog. You sure are brave to take on a 40x40 =)
10.
▲
by
gereleth
4y ago
They all need to be connected into a single network. No hanging connections, no loops, no disjoint parts.
11.
▲
by
gereleth
4y ago
Thanks for reporting, I'll look into this.
12.
▲
by
gereleth
4y ago
Are you on a Mac? I thought I got rid of this but I haven't tested on those.
13.
▲
by
gereleth
4y ago
On the backlog it goes). Can't promise I'll get to it in a timely manner but thanks for the suggestion.
14.
▲
by
gereleth
4y ago
Oops, thanks for reporting. I'll try to find someone with a Mac to debug this.
15.
▲
by
gereleth
4y ago
I didn't use any special coordinates, just some trigonometry. My code transforms coordinates between (x,y) - for drawing, (row, column) - for finding neighbours and (index into an array of tiles) - for managing state. It sort of grew o
16.
▲
by
gereleth
4y ago
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.
17.
▲
by
gereleth
4y ago
Fun puzzle! I played a few levels and I can see some similarities. Did you handcraft the levels? They don't look algorithmically generated.
18.
▲
by
gereleth
4y ago
I remember being pretty mad at how a straight piece isn't immediately solved after you fix one wall. Like how can it still have wiggle room?! =)) All general principles still apply though, so experience with Net certainly helps here.
19.
▲
by
gereleth
4y ago
Wow, did you really start with a 40x40? I only solved like two of them ever. It's pretty time consuming). And good time on the wrap! Small wrap boards can actually be harder than larger ones because there's less chance of finding
20.
▲
by
gereleth
4y ago
Thanks for the feedback. I already promised to add timer hiding option in another comment thread, will do on the weekend.
21.
▲
by
gereleth
4y ago
You can change control mode in the settings. The default is rotate/lock, but there's a rotate/rotate as well. And... another tricky one for orienting a tile in one click.
22.
▲
by
gereleth
4y ago
Mm, middle button, why didn't I think of it. 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
23.
▲
by
gereleth
4y ago
The file to look at would be this Tile component: https://github.com/gereleth/hexapipes/blob/main/src/lib/puzz... My svg handling was very much "learn as I go". An earlier version eve
24.
▲
by
gereleth
4y ago
Good idea! I'm already thinking of how to implement... I really need another vacation or two, lol
25.
▲
by
gereleth
4y ago
Fair enough, I'll think how to word all this.
26.
▲
by
gereleth
4y ago
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 =).
27.
▲
by
gereleth
4y ago
There might still be issues with multiple solutions... Because when a board has multiple solutions they're all valid Spanning Trees. But there probably is some way around this. An efficient generator could perhaps even work client side
28.
▲
by
gereleth
4y ago
Thanks for sharing, I'll add that option (on the weekend most likely).
29.
▲
by
gereleth
4y ago
You can check out "Orient / Lock" control mode in the settings. It lets you orient a tile in one tap but needs precision about where you tap. I mostly use this mode but it takes some getting used to, so I didn't make it
30.
▲
by
gereleth
4y ago
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 whic
More ›