Live data from Hacker News

enclose.horse

enclose.horse

161–170 of 242 posts

Re: enclose.horse

#161
post #93

I found the optimal solution for day 8 by hand, that was fun! My algorithm, by hand, was as such: 1. Start with the smallest possible valid solution (1) 2. Expand slowly, and each "step" (like, moving a wall or two around to "obvious" spaces) must be a valid solution (this brings you to 40-60 score, depending on your choices, on day 8). Continue to step 3 once you can't see anything obvious. 3. Look at possible place…

This feels strangely similar to TDD with the Tranformation Priority Premise

Re: enclose.horse

#162
Fun game, but the animation style is too distracting for me. Maybe there should be an option to disable it or have it stop automatically.

I didn't initially expect it would be a problem, but the constant squiggly movement gets very annoying.

Re: enclose.horse

#163
I didn't realize level 1 gave me 11 (eleven) walls at first. I thought it stood for II = roman 2. Maybe use a font that makes the difference between 1 and I clearer.

Re: enclose.horse

#164

Earlier quoted context omitted.

The site uses Answer Set Programming with the Clingo engine to compute the optimal solutions for smaller grids. Maximizing grids like this is probably NP-hard. Note that traditional SAT and SMT solvers are quite inefficient at computing flood-fills. The ASP specifications it uses to compute optimal solutions are surprisingly short and readable, and look like: #const budget=11. horse(4,4). cell(0,0). boundary(0,0). ce…

Im over 35 years of age. I have 15+ years of programming experience. And I generally consider myself as someone who has good breadth of tech in general. Yet, this is the first time in my life I've heard of ASP. And gosh. I was completely blown away by this as I read more about it and went through some examples ( https://github.com/domoritz/clingo-wasm/blob/main/examples/e... ) Therefore, like a good little llm bitch…

The more recent Lifschitz book is the easiest to learn from IMO:

- https://www.cs.utexas.edu/~vl/teaching/378/ASP.pdf

It starts with basics of using ASP and gives examples in clingo, not math.

The Potassco book is more comprehensive and will help you understand better what is going on:

- https://potassco.org/book/

Things I don't like include that it's more dense, doesn't use clingo examples (mostly math-style examples so you kind of have to translate them in your head), and while the proofs of how grounding works are interesting, the explanations are kind of short and don't always have the intuition I want.

I still think this is the authoritative reference.

The "how to build your own ASP system" paper is a good breakdown of how to integrate ASP into other projects:

- https://arxiv.org/abs/2008.06692

The Potassco folks are doing amazing work maintaining these tools. I also wish more people knew about them.

EDIT: I forgot to mention that specifically for games stuff like enclose.horse, look at Adam Smith's Applied ASP Course from UCSC:

- https://canvas.ucsc.edu/courses/1338

Forgot to mention that one... we use clingo in Spack for dependency solving and other applications frequently slip my mind.

Re: enclose.horse

#166

Cool game, but I don't like how you get only one chance. Even returning to the page, you can't try again to beat your previous score. No replayability value at all.

IMO they should have a (second) pop-up that warns you that you only get one submit. Not sure if it should let you know if you've made an optimal solution or not, but since it's not timed there's no cost in slowing people down. I've seen similar daily puzzles where you get to see the leaderboard and then can go back and optimize further. Yes, it says it at the beginning, but it's still easy to forget.

Re: enclose.horse

#167
Wow, that’s a lot more challenging than it looks. I agree with another commenter that the 3d blocks look confusing - they appear to cover two spaces.
Post reply on HN