Recent submissions

Comment · 3 years ago
Comment · 3 years ago
Comment · 3 years ago
Comment · 4 years 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).

Comment · 4 years ago
I see, thanks for reporting.

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

Comment · 4 years ago
Congrats! This is some amazing dedication =).
Comment · 4 years 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'm usually zoomed in on mobile and I use touch and drag to move around. Interfering with that would be bad too.

I'm open to ideas for better controls.

Comment · 4 years 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 to initial state? Or something like keep the locked tiles, reset the rest?

Comment · 4 years ago
Browser zoom kinda works. But yeah, adding better zoom/pan is in my backlog.

You sure are brave to take on a 40x40 =)

Comment · 4 years ago
They all need to be connected into a single network. No hanging connections, no loops, no disjoint parts.
Comment · 4 years ago
Thanks for reporting, I'll look into this.
Comment · 4 years ago
Are you on a Mac? I thought I got rid of this but I haven't tested on those.
Comment · 4 years ago
On the backlog it goes). Can't promise I'll get to it in a timely manner but thanks for the suggestion.
Comment · 4 years ago
Oops, thanks for reporting. I'll try to find someone with a Mac to debug this.
Comment · 4 years 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 organically and could probably be cleaned up a lot.

The hardest part was making the board repeat for the wrap variant making sure that all tiles have consistent wrap neighbours. I almost deployed a version that worked fine on odd-sized grids and went completely bananas on even-sized grids. The danger of always testing on a 5x5 board)).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton