Cover of Adventure in Prolog

Adventure in Prolog

by Dennis Merritt

10mentions
6recommended by
9HN commenters
2016–2026first – last mentioned

67% recommend33% neutral

Why HN recommends it

Step-by-step Prolog tutorial that teaches language features by building a text adventure game; enjoyable to work through and a good route into exploring Prolog for beginners.

Summarised by Claude from recommending comments

This book is aimed at the programmer who wishes to learn the advantages of programming in Prolog. It takes a pragmatic rather than theoretical approach to the language, using a full programming example rather than code fragments. The various features of Prolog, such as logic definitions, symbolic reasoning, database manipulation, natural language, I/O, and flow of control, are taught through the step-by-step development of an adventure game - an excellent and fun vehicle for showing Prolog's power. Through the exercises the reader applies the skill learned to the development of three other app

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

20 2007: 0 mentions2008: 0 mentions2009: 0 mentions2010: 0 mentions2011: 0 mentions2012: 0 mentions2013: 0 mentions2014: 0 mentions2015: 0 mentions2016: 1 mention2017: 0 mentions2018: 2 mentions2019: 2 mentions2020: 1 mention2021: 2 mentions2022: 0 mentions2023: 0 mentions2024: 0 mentions2025: 1 mention2026: 1 mention200720172026

What Hacker News says

  • miguelsm · Feb 11, 2020 · Recommends

    Adventure in Prolog by Dennis Merritt teaches you different features of Prolog in a step-by-step manner while developing a game.

    on “Ask HN: What are some books where the reader learns by building projects?” ↗
  • pacaro · Apr 22, 2025 · Recommends

    There's even a book "Adventure in Prolog" by Dennis Merritt (ISBN 1520918917) It's a lot of fun to work through, other prolog resources can be a little dry

    on “Prolog Adventure Game” ↗
  • segmondy · Aug 25, 2019 · Recommends

    Not even comparable. The OP posted a book, but you posted is a guide of no more than 30 pages. Novice: Adventure in Prolog Learn Prolog Now Logic Programming with Prolog Med - Advanced: Clause and Effect The Art of Prolog The Craft of Prolog Wam Book The Practice of Prolog Prolog Programming for AI - Brakto Deep Dive: Expert…

    on “Adventure in Prolog Tutorial (2016)” ↗
  • segmondy · Oct 10, 2018 · Recommends

    …will ruin you, you shall be able to slay dragons and at the same time you most likely will not enjoy programming in "modern languages" anymore. (Intro/Novice) Learn Prolog Now (free on the web) Adventure in Prolog(free on the web) Logic Programming with Prolog (Intermediate) The Practice of Prolog Prolog Programming for Artificial Intelligence Prolog Programming In Depth Prolog Experiments in Discrete…

    on “The Birth of Prolog (1992) [pdf]” ↗
  • YeGoblynQueenne · Oct 10, 2018 · Recommends

    …search strategies. I'd also recommend the standard Prolog textbtook, Prolog Programming for AI, by Ivan Bratko. You can most likely find an edition in most university libraries. I've learned a lot from Adventure in Prolog, a Prolog tutorial on the Amzi! Prolog website (though I used a different Prolog to do the exercises, which is a very good sign of nice, basic and portable examples): http://www.amzi.com/AdventureInProlog/advtop.php…

    on “The Birth of Prolog (1992) [pdf]” ↗
  • Jtsummers · Jan 5, 2021 · Recommends

    Here are some resources: https://github.com/klaussinani/awesome-prolog#resources I recall going through the Adventure in Prolog one (free online resource) a while ago and enjoying it, helped direct a lot of exploration into the Prolog language and its capabilities for me. I have Clocksin & Mellish's Programming in Prolog (2003,…

    on “Why Learn Prolog in 2021?” ↗
  • tannhaeuser · Feb 24, 2026 · Recommends

    …puzzles as it gets with repository items and complicated conditions to advance the game. In fact, Amzi! Prolog uses adventure game coding as a topic for its classic (1980s) introductory Prolog learning book Adventure in Prolog ([1]). Based on a cursory look, most code in that book should run just fine on a modern ISO Prolog engine ([2]) in your browser. [1]: https://www.amzi.com/AdventureInProlog/advtop.php [2]: https://quantumprolog.sgml.net

    on “ΛProlog: Logic programming in higher-order logic” ↗
  • yesenadam · Jan 10, 2019 · Mentions

    I just now started reading Merritt's Adventure in Prolog (1990), and the very beginning seems somehow relevant to this thread: "I was working for an aerospace company in the early 1970s when someone got a copy of the original Adventure game and installed it…

    on “AWS gives open source the middle finger?” ↗
  • Avshalom · Apr 17, 2016 · Mentions

    Just a note on Nani Quest/Adventure in Prolog: it doesn't work in SWI-pl. I gave it a shot about 6 months ago and got to chapter 7 before stuff stopped working right. It was an excellent tutorial up to that point though.

    on “Amzi Prolog becomes open source” ↗
  • bmitc · Jan 5, 2021 · Mentions

    …Prolog as the computational implementation of the thesis that presents thinking as computation. https://mitpress.mit.edu/books/thinking-computation Other books I have but haven't gone through yet are Adventure in Prolog and The Art of Prolog.

    on “Why Learn Prolog in 2021?” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help