Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sammy1011

macrumors newbie
Original poster
May 30, 2009
1
0
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.