Re: JESS: Jess and a magic square

2008-05-08 Thread Ernest Friedman-Hill
On May 7, 2008, at 11:17 PM, Jeff Brown wrote: On Wed, May 7, 2008 at 12:04 PM, Ernest Friedman-Hill [EMAIL PROTECTED] wrote: 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

JESS: Puzzle 15

2008-05-08 Thread Senlin Liang
Dear all, I am trying to solve the puzzle 15 problem using jess, but failed to find a good solution. Is anyone has a ready program for it? Thanks, Senlin

Re: JESS: [JESS]: Removing rules from a session.

2008-05-08 Thread ivo jonker
Thanks a lot, this is exactly what i was looking for. I've just ordered the book: Jess in action and it should arrive shortly. I'm looking forward to it and i know it will be usefull. Anyway, while i'm at it. I was wondering how JESS would be suitable for using Time as a fact. I believe jess is

Re: JESS: [JESS]: Removing rules from a session.

2008-05-08 Thread Ernest Friedman-Hill
On May 8, 2008, at 9:24 AM, ivo jonker wrote: Thanks a lot, this is exactly what i was looking for. I've just ordered the book: Jess in action and it should arrive shortly. I'm looking forward to it and i know it will be usefull. Anyway, while i'm at it. I was wondering how JESS would be

Re: JESS: [JESS]: Removing rules from a session.

2008-05-08 Thread Ernest Friedman-Hill
On May 8, 2008, at 10:03 AM, ivo jonker wrote: I see. That sounds good. Does this mean Jess automatically evaluates the rules when i call the Modify for every second i update the Time? Pattern matching is driven by working memory changes, and it's very smart about what to re-test. That's

Re: JESS: Puzzle 15

2008-05-08 Thread Wolfgang Laun
I have never seen a program for this one in any language. Have you, or anybody else? -W On Thu, May 8, 2008 at 2:39 PM, Senlin Liang [EMAIL PROTECTED] wrote: Dear all, I am trying to solve the puzzle 15 problem using jess, but failed to find a good solution. Is anyone has a ready program for

Re: JESS: Puzzle 15

2008-05-08 Thread DCWYRICK
A quick 15 puzzle google search yields some JavaScript implementations of the game. I got bored one day and did some quick internet research on how to solve these. Apparently, one of the easiest tricks is to solve an outer row and column first. For example, 1 2 3 4 5 x x x 9 x x x 13 x x x

JESS: Accumulating values in a Variable in JESS

2008-05-08 Thread Marcelo Alvarenga Pedrosa
Dear All, I need to accumulate the all values obtained by the rules in the same variable, I mean, sum the variable value to another value and storing in the variable. Below you can see my code. However it ovewrites the value and in the end only presents the last value. Could you please help me?