On May 6, 2008, at 4:29 PM, Jeff Brown wrote:

Is this code anything close to idiomatic Jess?  The way that I am
expressing that all 9 squares must have unique values seems like it
must not be the "right" way.


There really isn't a better way to express this rule. It could be made somewhat more efficient by rearranging the patterns, but just in terms of expressing the uniqueness of the square contents given these data structures, that's about it.

If it's any consolation, I've never seen a real problem like his that needed to
be solved -- this kind of thing usually only comes up in puzzles!

---------------------------------------------------------

Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com




--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to