Sometimes, for some reason that I don't understand, the CLIPS IDE (Windows 10) doesn't show entries in the agenda, when there should be.
Please see image attached.
This code from the CLIPS Adventure book does it:
(defrule exposition
=>
(println "Captured by goblins, you've been")
(println "tossed in a pit at their lair."))
(run)
(deftemplate thing
(slot id)
(slot category)
(slot location))
(assert (thing (id adventurer)
(category actor)
(location pit_north)))
(defrule pit_north
(thing (id adventurer)
(location pit_north))
=>
(println "You're at the pit's north end.")
(println "A giant mushroom is here. The")
(println "ground is littered with the")
(println "bodies of dead adventurers."))
(agenda)
The agenda listing shows up in the output of (agenda), but not in the GUI browser.
Anonymous