Lurker News

Comments (464) 216 threads

Earlier comments
foobarbecue#
Fun! UI complaint: the animals block the objects so you can't easily see what they're on, which is annoying. Maybe shrink the animals a bit more, use a 3d effect, or add an option to make them partially transparent. Or just make them sit next to the obj instead of actually on top.

Edit: also, I expected OR rather than AND on the double constraint

leto_ii#
My two cents:

1. Like other people I found the UX a bit confusing (figuring out that two animals can occupy the same spot, picking which one of them to move etc.)
2. This one seems hard for a first level, if it's addressed to a general audience. Even figuring out that some edges are directed is not obvious if you don't know about graphs in advance. You should build a tutorial for non-HN people.
3. Are there other levels?
4. Lights are flashing way too fast at the end. A text message would also be nice.
Otherwise a great job! Playable and fun once you get into it. Would totally play again :D

mudrockbestgirl6 replies#
I'm convinced there is only one way to solve this: Write a program to unroll the constrained state transition diagram into an unconditional state transition diagram and find the shortest path. The unrolled version would still be pretty small so you can just iterate over it.
tgv1 reply#
You'd have to do that for VxVxV, because there are three different objects (although there's some symmetry). Solving a puzzle is often described as path finding.
mudrockbestgirl#
The vast majority of states is not reachable, so you can roll out the full tree from the starting state and it's going to be very small. Even the super-naive approach of unrolling the full state space is only 6^7 which is a big waste because connections are very sparse but even that's not big, it just wouldn't scale to larger problems.
sooyoo#
That's an interesting statement. Because I actually don't think it's true.

(Well obviously it's not and you were joking, but let's say you were not, for the sake of argument.)
Humans do this differently from machines. We look for strategies and have smarts to on-the-fly develop and refine heuristics that rapidly allow us to intuitively do branch-and-bound like algorithms and in the end solve this even though we brute force very litte, if at all.
That's why it took so long for machines to surpass us at chess or similar. It's a different approach. That's what makes machines better at certain things and humans at others. And there is a lot to be gained by trying to have machines also try human-like approaches to problems (strategy-developing rather than brute force).

sterlind#
In other words, BFS over the state space of the puzzle, skipping previously-visited states?

You don't actually gain anything by unrolling everything ahead of time; it'd actually be worse because you'd store all the memory and wouldn't stop when you get to the solution. And you can't really factor the state space into subproblems.
Anyway, for this puzzle BFS would work, but classical planning in general gets astronomically exponential fast. It's a neglected field, not yet thawed from the last AI winter.

marcodiego1 reply#
This can be easily solved by a class of algorithms called "search algorithms". Most famous ones are "Breadth-first search" and "Depth-first search". They have many variations like "Depth limited depth-first search" and "Iterative deepening depth-first search". If you include heuristics, then you have other variations like "A" and "Iterative deepening A". These are pretty well known and relatively easy to implement.
jaredsohn#
Hacker news change the star into italics. The variations are called 'A*' and 'iterative deepening A*' (Need a backslach prior to the star to show it properly)
fwip#
It was easy to solve in like, 2 minutes.
babyshake#
This puzzle is definitely along the lines of a Leetcode-style traversal exercise
bckr#
Possible epilepsy warning on completion?

Great little puzzle, thanks for making this and sharing it.

Load more comments