-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
order of the input impacts the generated layout - why ? #9
Comments
Thanks so much for your message! I just tested it out. Yes, order does appear to matter! Here are a few ideas I quickly came up with that might be a little bit helpful:
I think that having many different fitness functions that one could choose from would be really neat! Maybe this is something to be done in the future. |
Thanks for your suggestion, here is my POV Random ? I can do that on the app level BTW, I'm using it in a side project. I run generateLayout() for all permutations I can imagine (explained below) and then I use my own fitness function to pick the best. If I permute each SAPCE in an answer, I can decide where to delete it (and make it a long word without spaces) or to split it to a "sub" clue-answer pair. which gives me 2^[number-of-spaces] permutations (which is not ideal) for example:
|
when I change the order of the objects {answer: 'xxx', clue: 'yyy} within the input array to the main generateLayout() function I get a different layout.
considering the fitness function - could be that a different order of the input will yield a better layout ?
The text was updated successfully, but these errors were encountered: