Hi Russ,

I added an "Examples" package tag, with several methods that lead through
the Zebra Puzzle solution, step by step.  

It still doesn't do the entire solution by itself, but each example method
displays the solution state up to that point, allowing you to examine the
results and infer additional rules to add.

The last example method combines the puzzle rules + the additional rules you
infer, and displays the complete solution.

I plan to make the code "smarter" over time, so that it can eventually solve
the whole thing by itself.

Let me know what you think...

-Ted



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to