Discussion about this post

User's avatar
Yair Halberstadt's avatar

It seems to me this would allow a solution where a large space is bounded, and the horse was bounded separately? Am I wrong that there's nothing in your constraints which says that the inescapable area has to be attached to the horse?

Thoroughly Typed's avatar

Fun little game and I really want to try out integer programming now!

I think I've found a bug with your formalization: Have a look at this little level: https://enclose.horse/play/XHZO8P. I'm pretty sure the maximum score is 3. But your script's solution has a score of 1. It tries to enclose the upper row, which doesn't count as horse cannot reach it.

Edit: Yair Halberstadt was quicker in figuring this out

9 more comments...

No posts

Ready for more?