PDA

View Full Version : CLIPS Rule Based Expert Systems




sammy1011
May 30, 2009, 05:39 AM
Does anyone have any experience with writing expert systems in CLIPS? I have to do an assignment to solve the "Bulls and Cows" problem using CLIPS.
The task is for the program to guess a four digit random number read from the keyboard from the digits 1 to 9, without duplication.Finally print the score for the guess.

The score is computed as:

The computer wins if the guess is the same as the chosen number, and the program ends.
A score of one bull is accumulated for each digit in the guess that equals the corresponding digit in the randomly chosen initial number.
A score of one cow is accumulated for each digit in the guess that also appears in the randomly chosen number, but in the wrong position.


Anyone have some advice?

Thanks