This little book is a true gem! In my personal opinion it’s the best book for learning Prolog. It doesn’t assume any prior functional or logic programming experience. It starts off with simple facts and gradually progresses to rules, recursion, operators, etc. all in the context of building a simple text-based puzzle game, similar to the classic “Adventure”. Everything is explained clearly and simply, and uses a simple graphical notation for explaining the effects of success, failure, and retries for different clauses. Highly recommended for anyone who wants to learn Prolog!
The beginning of the book was great but as I read on I kept wanting more details and examples. I felt like it was written for those who already know Prolog but have not used it in a few years and would like a refresher.
I really wish the answers were provided to the exercises, being a self learner the only place I can turn to when I got stuck was StackOverflow.
This book did get me interested in Prolog, so do plan on reading a different book for a better introduction to the language.
A simple and clear, well written, and easy to read and understand introduction to Logic programming in The prolog language. The author uses the development of a simple text based adventure game as his running example. Just a few hours f effort will give you a solid introduction to this important style of programming.