Arithmetic and Lists

Due:
5:00am, Wednesday November 6, 2024

Description

Write a Prolog file named p3.pl that defines the following predicates:

Additionally, there is a program named escape_room.pl in the starter code. Augment this program with a new predicate escape(State, Actions) where Actions will be instantiated with the list of actions to achieve the goal. For example

?- escape( state(atdoor, onfloor, middle, trapped), A).
A = [walk(atdoor, middle), push(middle, atwindow), climb, climb]

Turning in the Assignment

To submit your assignment, create a zip file named p3.zip of a DIRECTORY named p3 containing the following files:

Then submit that file to the appropriate folder on D2L.