Cool. 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.
Yes! 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!
Comments (464) 216 threads
Show all comments
Showing thread 14 of 216
I wrote an automatic solver for the puzzle in Scala and open-sourced in GitHub. : https://github.com/yusungsim/dogbunnysolver Check it out!
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!