3 ms·
Hi! I enjoyed the puzzle and I liked how puzzle itself explains every rule within itself. :) I wrote an automatic solver for the puzzle in Scala and open-sourc
by yusungsim 4y ago
Hi! I enjoyed the puzzle and I liked how puzzle itself explains every rule within itself. :)
I wrote an automatic solver for the puzzle in Scala and open-sourced in GitHub. : https://github.com/yusungsim/dogbunnysolver https://github.com/yusungsim/dogbunnysolver Check it out!
- 7thaccount 4y agoCool. I see it is a solution that has the graph embedded in the code though. Any chance you could build one to work off a generic input model that describes the starting state of the characters, nodes, connections, and connection rules? That way you could run it every day without code tweeks.
- yusungsim 4y agoYes! In fact, I already listed-up my future plan for refactoring the code at the readme. One of the plan is to use file I/O to get the graph structure and the rules. I expect there would be existing solutions for (de)serializing the generic graph. One tricky thing (I think) is to encode the connection rules in some parsable format. I'm planning on extending the connection rule to propositional logic and find some fancy way to efficiently en(de)code the PL formula. Maybe I should spend some more nights to refactor my ugly code :P anyway thanks for the reply!