User Activity

  • Posted a comment on discussion Help on CLIPS Rule Based Programming Language

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

  • Posted a comment on discussion Help on CLIPS Rule Based Programming Language

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

View All

Personal Data

Username:
anthonyesl
Joined:
2020-05-28 22:52:38

Projects

  • No projects to display.

Personal Tools