Most active commenters
  • lnenad(10)
  • tobr(3)
  • dankwizard(3)

56 points lnenad | 31 comments | | HN request time: 1.098s | source | bottom

Hey HN,

I built this simple puzzle generator to play around with wasm a bit.

It's open source if anyone wants to play around with the code https://github.com/lnenad/puzzlip

1. horsellama ◴[] No.42126980[source]
nice app it could be fun to also animate the puzzle solution
replies(1): >>42129189 #
2. clutch89 ◴[] No.42127085[source]
It's interesting that the pieces don't get moved, only rotated.
3. manucardoen ◴[] No.42127200[source]
really nice. Unfortunately once I spotted the score tells you you've hit the correct rotation, I just looped over all the squares clicking each one until my points went up.
replies(1): >>42129048 #
4. tobr ◴[] No.42127254[source]
This could be a nice distraction, but unfortunately the interaction latency makes it feel so sluggish I can’t get into flow.
replies(4): >>42127488 #>>42127545 #>>42127554 #>>42129044 #
5. tartoran ◴[] No.42127488[source]
I get no interaction latency, perhaps because I made the tile size a little larger and there are fewer tiles. Give it a try. As someone suggested, the pieces only rotate which make it easier for finishing the puzzle.
6. paulirish ◴[] No.42127545[source]
Yeah I get 100-250ms of latency between input and presentation. https://trace.cafe/t/UFXm7ASLQg
7. arcastroe ◴[] No.42127554[source]
I wouldn't call it sluggish. It's just that the tiles only update on mouseup events, rather than on mousedown events. Your own finger's turtle speed is the only source of latency ;)

But I agree that applying different styling to tiles on both hover events and mousedown events would make it feel snappier.

(I've only tried this on desktop. Haven't tried it on mobile)

replies(1): >>42127724 #
8. tobr ◴[] No.42127724{3}[source]
That’s not the problem, although it doesn’t make it better.
9. b450 ◴[] No.42127763[source]
Seeing the image come into focus is pretty satisfying, and the half-solved puzzle looks pretty cool. Nice job
replies(1): >>42129103 #
10. thomastjeffery ◴[] No.42127918[source]
Would be even more satisfying if 180 degree turns were less common.

I also wonder how hard it would be to tile with different shapes. Hexagons or squares and octagons could be really neat.

replies(1): >>42129197 #
11. causeisunknown ◴[] No.42128041[source]
The easiest option is still too hard for my son.
replies(1): >>42141883 #
12. doodpants ◴[] No.42128104[source]
Neat, but the "Diffictulty" slider is a bit of a misnomer, IMHO. Puzzles with more pieces just take longer. I'm not sure what would be a better label, though. (If I were feeling uncharitable, I would propose "Tedium", or perhaps "Carpal Tunnel Risk" :-)

I wonder if there might be a way of changing the difficulty without changing the number of pieces? Like maybe putting gridlines between the pieces, so that you can't actually see the seamless connection between two correctly-oriented pieces?

replies(1): >>42128962 #
13. Jeremy1026 ◴[] No.42128339[source]
I'd love to see a button added to show what pieces are wrong. There are a couple of images with heavy vignette so the edges are pretty indistinguishable. It'd be cool if I could get the incorrect pieces bordered or similar.
replies(1): >>42129155 #
14. knowitnone ◴[] No.42128843[source]
this is nice. would also be fun to solve it with computer vision
15. lnenad ◴[] No.42128962[source]
Hmm, I don't know to be honest, usually difficulty translates to spending more time and the pieces being smaller does it make it visually harder to discern right?
replies(1): >>42129887 #
16. lnenad ◴[] No.42129044[source]
What browser, OS?

On windows both Firefox and Chrome have no discernible latency for me at least.

replies(1): >>42130610 #
17. lnenad ◴[] No.42129048[source]
Ah, that is why I have added the number of moves and the ideal number of moves :)
18. lnenad ◴[] No.42129103[source]
Thank you :)
19. lnenad ◴[] No.42129155[source]
Good idea, thank you!
20. lnenad ◴[] No.42129189[source]
Thanks for the suggestion :)
21. lnenad ◴[] No.42129197[source]
That is my plan, to do a honeycomb structure. :)
22. yungtriggz ◴[] No.42129401[source]
Wild that you've posted this once a year for the last 3 years. Love it
replies(1): >>42129659 #
23. lnenad ◴[] No.42129659[source]
Haha, I didn't get any response previously and will be getting laid off soon so extra free time...
replies(1): >>42144454 #
24. carltg_ ◴[] No.42129887{3}[source]
Not really, time doesn't make something difficult, just tedious. For the cat puzzle, smaller pieces doesn't really make a difference. Once you get a corner it is easy to line up and knock them down. So, just tedious
25. tobr ◴[] No.42130610{3}[source]
Safari iOS.
26. dankwizard ◴[] No.42132857[source]
Have had this bookmarked for a very long time and go back to it semi regularly.

Any chance you can load a bunch of stock photos into the various categories? I think there's only ~8 or so in each.

replies(1): >>42133739 #
27. lnenad ◴[] No.42133739[source]
Wait really?? Wow, that's awesome to hear. I'll increase the count.
replies(1): >>42141875 #
28. dankwizard ◴[] No.42141875{3}[source]
Best news I've heard all day!
29. dankwizard ◴[] No.42141883[source]
I've got some bad news for you...
30. yungtriggz ◴[] No.42144454{3}[source]
godspeed