FAQ Database Discussion Community


Prolog: Solving a Puzzle

prolog,logic,zebra-puzzle
I am new to prolog and I am trying to solve the following question. I am having difficulty trying to understand the logic to solve the problem. I know its similar to zebra problem but, I am unsure how to approach. Any help would be greatly appreciated. The answers submitted...

Solving ship puzzle using prolog

prolog,zebra-puzzle
I need to solve the following problem using prolog. These are the facts provided. 1. The Greek ship leaves at six and carries coffee. 2. The Ship in the middle has a black chimney. 3. The English ship leaves at nine. 4. The French ship with blue chimney is to...

Why I can't get an answer for the Ship Puzzle with Prolog?

prolog,zebra-puzzle
I need to solve the Ship Puzzle problem with using Prolog. Here are the facts. There are 5 ships. 1. The Greek ship leaves at six and carries coffee. 2. The Ship in the middle has a black chimney. 3. The English ship leaves at nine. 4. The French ship...

Four Professions prolog puzzle

prolog,zebra-puzzle
I am trying to solve a puzzle in prolog and i made only a part of it, i can't figure out how to finish it. This is the problem: Consider four men with last names of Baker, Carpenter, Miller, and Farmer. Assume that the four professions represented by this group...