Why i have this behaviour? (deftemplate k-cell (slot x) (slot y) (slot content (allowed-values water left right middle top bot sub)) ) (deftemplate a-cell (slot x) (slot y) (slot content (allowed-values water left right middle top bot sub unk)) ) (deftemplate k-per-col (slot col) (slot num) ) (deffacts init (a-cell (x 0) (y 9) (content water)) (a-cell (x 1) (y 9) (content water)) (a-cell (x 2) (y 9) (content water)) (a-cell (x 3) (y 9) (content water)) (a-cell (x 5) (y 9) (content water)) (a-cell...
I have a problem with a rule match in Clips, in particular i can't understand why this rule doesn't actives. (deffunction get-unknow-col (?col) (bind ?facts (length (find-all-facts ((?a a-cell)) (and (eq ?a:y ?col) (eq ?a:content unk))))) (return ?facts) ) (deffunction get-boat-pieces-col (?col) (bind ?facts (length (find-all-facts ((?a a-cell)) (and (eq ?a:y ?col) (and (neq ?a:content unk) (neq ?a:content water)))))) (return ?facts) ) (defrule mark-remaining-unk-cells-col (declare (salience 40))...