Live data from Hacker News

enclose.horse

enclose.horse

201–210 of 242 posts

Re: enclose.horse

#202
post #106

Earlier quoted context omitted.

Side by side or a diff view would be great.

I agree. Also, knowing the max score in advance would be better, so you know when to stop/whether to keep going.

that gives away too much information, instead i'd go with something that tells you that you've found the best solution. you'll still be able to know whether or not to keep going, but you get no information that makes finding the ideal solution easier.

Re: enclose.horse

#205
just vibe-coded an optimizer for this game that takes in the screenshot of the grid and the number of walls as input, and spits out the optimal wall configuration (supports cherries too!)

algorithm:

1. infer grid dimensions

2. color histogram analysis to designate grasses, water, cherries and horse

3. apply mixed-integer linear programming to determine optimized wall placements

4. profit!

try: https://dyigitpolat.github.io/enclose-horse-solver

source: https://github.com/dyigitpolat/enclose-horse-solver

Re: enclose.horse

#206

Earlier quoted context omitted.

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 example…

Thank you.. Have noted these down.

Re: enclose.horse

#207
post #194

Earlier quoted context omitted.

Thanks... noted a few keywords to expand on further: 1. Symbolic reasoning 2. SAT/SMT/ASP 3. pre-machine-learning formulations of AI

"Logic programming"[0] is what I've always heard this stuff called. I was introduced to it with Prolog. "Declarative programming"[1] is kind of a superset of logic programming, which may or may not be the aspect that piques your interest. "Constraint programming"[2] and "Constraint logic programming"[3] are also a perspective on it. [0] https://en.wikipedia.org/wiki/Logic_programming [1] https://en.wikipedia.org/wiki…

Thanks a lot. These are what I was hoping to know.

Re: enclose.horse

#208
post #124

Earlier quoted context omitted.

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…

Has to be my favourite comment, haha!

:)

Re: enclose.horse

#210
post #119

Looks like some people have discovered the first "accidental" game mechanic: The horse can walk over cherry fields, but the player cannot place walls on them - so if a level designer places cherries strategically, they can create unblockable paths. Right now, this is only used for troll levels, but I wonder if you could also use it for some actual puzzles.

It's not just troll levels, see https://enclose.horse/play/n9YDZm
Post reply on HN