Drools puzzle #1
I completely missed the announcement for the Drools puzzles but it looks like lots of fun. Here's my solution to the first puzzle using Clips. You run it by executing the batch file:
CLIPS> (batch "... /ages-of-the-sons.bat")
TRUE
CLIPS> (clear)
CLIPS> (load "ages-of-the-sons.clp")
%%!***
TRUE
CLIPS> (generate-ages)
FALSE
CLIPS> (run)
What are the ages of the three sons of the old man?
2, 2 and 9
10 rules fired
40 mean number of facts (44 maximum).
0 mean number of instances (0 maximum).
4 mean number of activations (8 maximum)
