Settings

Theme

Enclose.horse Solver

dyigitpolat.github.io

1 points by dyigitpolat 7 days ago · 1 comment

Reader

dyigitpolatOP 7 days ago

just vibe-coded an optimizer for the game enclose.horse 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.0. register game mechanics as optimization constraints (cannot place on cherries, cannot move over walls and waters etc.)

3.1. 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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection