Teaching a computer to solve logic problems is worthwhile.
Details and links for using the Prolog language.