I'm trying to create a deck of cards as a simple excercise:

(reset)
(watch all)

(deftemplate deck2 (slot index))

(bind ?i 1)
(defrule generate-deck2
  =>
  (while (<= ?i 52) do

           (assert (deck2 (index ?i)))
           ))

With this, Jess just hangs after the first fact :

 ==> f-0 (MAIN::initial-fact)
 ==> f-1 (MAIN::deck2 (index 1))

Any idea why?  Is there a way to monitor what's going on when the Jess
engine does not output anything?

Thanks,

Peder Jakobsen

--------------------------------------------------------------------
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