I would like to create an iPhone app that can generate hash puzzles (if you don't know the puzzles, here is the Wikipedia article: https://en.wikipedia.org/wiki/Hashiwokakero ). I think it would not be easy for me to develop a solution algorithm, but I'm not sure how to generate it.
This is how I will do it (idk if it even works); I generate several islands (or segments), but only if they allow a possible solution. Then, after each generated island, I run the solution algorithm and see if it can be solved. If so, do it. In addition, I either delete the segment, or generate another, or add another.
What do you think? Will this work, and are there better ways to do this?
source share