Starting from:

$30

Assignment 5: Logic Puzzle


Homework 5
1. Download and install an IDE for Prolog, e.g. SWI-Prolog at https://www.swi-prolog.org,
or use the online Prolog REPL SWISH at https://swish.swi-prolog.org.
2. Start reading the Prolog tutorial at
http://www.learnprolognow.org/lpnpage.php?pageid=online.
Lab Assignment 5: Logic Puzzle
Write a Prolog program to solve the logic puzzle “Star Tricked”.
You will need a way of writing facts that occurred earlier in the week. You can use simple
clauses like earlier(tuesday, wednesday). Or you can encode days as numbers and use
arithmetic, then translate the output.
1 of 2

More products