Skip to content

Enclose moose - #563

Open
MikaeldeVerdier wants to merge 14 commits into
mainfrom
enclose_moose
Open

Enclose moose#563
MikaeldeVerdier wants to merge 14 commits into
mainfrom
enclose_moose

Conversation

@MikaeldeVerdier

Copy link
Copy Markdown

Added support for enclose.moose. Installed one new package (ortools). Let me know if anything looks weird, don't really know what i'm doing!

@georgelgeback

Copy link
Copy Markdown
Contributor

How is optimal_is_unique meant to be used by the app? If the allotted number of walls is more than the one used for the optimal solution, the extra walls can be placed by the solver anywhere outside the enclosed area and lead to optimal_is_unique=false even if there's only one way to place the walls which actually enclose the space. Your test grid has only one enclosed area solution, but three wall-solutions:

.~.    .~W    W~.    
WHW    WHW    WHW
~W~    ~W~    ~W~

No clue if that messes with the way you wanna build the game in the app.

@MikaeldeVerdier

Copy link
Copy Markdown
Author

optimal_is_unique is currently not used by anything. I just added it because it was interesting to see when creating the level. Since optimal_solution only keeps track of one solution, I prefer the solution to be unique (as does enclose.horse).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants