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.
I recommend "Adventure in Prolog" to anyone looking to learn Prolog. It was certainly the beginner's introduction that I needed and I have since found none better. Before reading "Adventure in Prolog", I had been struggling to grasp even the basics of Prolog and logic programming. Merritt's explanations were the first that I could actually understand. It assumes little, but avoids condescending to the reader. There seem to be a few typos, but they don't spoil it.
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.