Hi There!

I'm Dan Schlegel, an Associate Professor in the Computer Science Department at SUNY Oswego

Prolog Challenge 1

In our effort to learn how to model situations using Prolog we have examined a simple logic problem in class. Two more such puzzles are below for you to practice with!

  1. Write a Prolog program to model and solve the below puzzle. Use the techniques we learned when solving the It’s a Tie puzzle. If you work by analogy, you shouldn’t have too much trouble!

2. Write a Prolog program to solve this logic puzzle. This one is somewhat harder! When you look at the clues, you’ll notice that your model of the world needs to be bigger than before. The solution is worked out on that page so you can examine it to work out your own rules. Since this one is harder, we’ll accept it as extra credit, but with partial credit for partial solutions!