Ben North's blog.

Covering various topics, usually of a vaguely nerdy nature.

17 June 2012

Solving Professor Popalop's puzzles in Prolog

This puzzle was in my daughter's Dandy: and I thought it would give me an opportunity to experiment with Prolog, which I'd been meaning to do for a while. I used SWI-Prolog. Structure of the puzzle We'll represent a block of nine boxes as a list. A box is the expression X/Y/C, meaning that creature […]