Live data from Hacker News

enclose.horse

enclose.horse

81–90 of 242 posts

Re: enclose.horse

#81

Earlier quoted context omitted.

You caching in memory or disk? Redis or db might survive the crashes and reduce future ones

on disk, so basically I'm trying to save the image of a solution and reuse it if the same quiz is required. So instead of recomputing the result just return the same image.

Got it. Is that cache surviving the crashes?

Re: enclose.horse

#82

Score init should say N/EIGH instead of N/A, otherwise great.

Reminds me of a comic I saw a couple years back about a horse parliament where the horses only voted “neigh”

That's from the Far Side. My mom has had this on her fridge for at least 30 years.

Re: enclose.horse

#84

Earlier quoted context omitted.

on disk, so basically I'm trying to save the image of a solution and reuse it if the same quiz is required. So instead of recomputing the result just return the same image.

Got it. Is that cache surviving the crashes?

I'd have to host it somewhere (s3?). Right now I only commit the solution png to github. OFC it's not a good option but it's free and fast.

Re: enclose.horse

#85

Great game, I love it! I hope the author is collecting juicy analytics. They would be useful if they ever want to bundle 100 levels in order of difficulty and release this as a Steam game (which I would absolutely buy!) I don’t think the gates should animate up into the air. It breaks the visual logic of 2D for no benefit. It’s subconsciously confusing to see a gate I place in one cell move to occupy pixels in the ce…

Another thing to try could be to rank people in realtime instead of the one-off submission approach. I do this in https://spaceword.org (create tight crosswords using 21 letters), and I think it's quite motivating to see how you compare to others as you improve your solution. On the other hand, its a bit more taxing on the server, and then you also could not show the optimal solution.

Re: enclose.horse

#86

Earlier quoted context omitted.

Got it. Is that cache surviving the crashes?

I'd have to host it somewhere (s3?). Right now I only commit the solution png to github. OFC it's not a good option but it's free and fast.

I think Cloudflare r2 has a generous free tier. You can also technically store images in redis I think. anyways, thank you for making this, really cool!

Re: enclose.horse

#87
post #73
post #52

Earlier quoted context omitted.

> I don’t think the gates should animate up into the air. I think it should go up, otherwise it doesn't look like a wall. It would look like something the horse can step on and run over. For the water it makes sense to be flat flat and that the horse doesn't want to touch it: it is water-shy.

To me the current design doesn't look like anything at all. I don't see a gate or a wall, just two rectangles.

+1 to this. It's also visually confusing, the gate looks like it's covering two cells.

Great game! Feature request: add a button that shows my submitted solution. I'd like to be able to compare it with the optimal solution (so it'd be nice if a single tap could toggle between my submission and the optimal).

Re: enclose.horse

#88
post #24

I am curious on how you would algorithmically find the optimal solution for this kind of problem for much bigger grids. I wanted to do some seed finding in Factorio for the same exact problem using the generated map images, but never found a good solution that was fast enough.

Constraint programming seems to be a fitting approach. Input would be number of walls, and the location of lakes. The decision variables would be the positions of walls. In order to encode the horse being enclosed, additional variables for whether horse can reach a given square can be given. Finally, constraints for reachability and that edges cannot be reached should ensure correctness.

Yes. CP SAT crunches through it in no time, but of course larger grids would quickly make it take much longer.

See

https://gist.github.com/Macuyiko/86299dc120478fdff529cab386f...

Re: enclose.horse

#89

Earlier quoted context omitted.

I disagree about the replayability aspect. It‘s a daily challenge, so come back tomorrow. I quite like it.

I seriously don't get the idea behind daily challenges unless you want to keep users hooked to extract some value from them, but that doesn't seem to be the case here, as there are no ads. Just show all the different levels at once.

If you click the menu button in the top right you can play all the past puzzles

Re: enclose.horse

#90
post #87
post #73

Earlier quoted context omitted.

To me the current design doesn't look like anything at all. I don't see a gate or a wall, just two rectangles.

+1 to this. It's also visually confusing, the gate looks like it's covering two cells. Great game! Feature request: add a button that shows my submitted solution. I'd like to be able to compare it with the optimal solution (so it'd be nice if a single tap could toggle between my submission and the optimal).

It would be nice if the “optimal” view visualized both my solution and the optimal one at the same time, like a Venn diagram.
Post reply on HN