Flower disk rotation puzzle solver: Python vs Prolog

This post is a followup to the Equation puzzle solver: Python vs Prolog. We again compare Python and Prolog, but look at a different problem: a disk rotation puzzle. The flower disk rotation puzzle The flower disk rotation puzzle consists of 4 wooden, stacked disks. The disks are connected at their center via a pole, … Continue reading Flower disk rotation puzzle solver: Python vs Prolog

Equation puzzle solver: Python vs Prolog

Recently some of my friends and colleagues asked me: how is┬áthe logic-declarative language Prolog (I've been playing around with it) comparable - or not comparable - to typical, more well known programming languages? This question made me curious how similar implementations in Prolog typically are to implementations in other, more well known programming languages. Hence, … Continue reading Equation puzzle solver: Python vs Prolog

Mastermind: code guessing helper in Prolog

You may know Mastermind, the 2 player board game where one player becomes the codemaker, who creates the code, and the other player becomes the codebreaker, who tries to guess/derive the code. A classic Mastermind board may look like the one shown on the left -- seen from the perspective of the codemaker, with the … Continue reading Mastermind: code guessing helper in Prolog