CSCI305.github.io

CSCI 305: Programming Languages

Prolog Part 2

Reading: Webster Ch. 20

Instructions

  1. Watch This Video - (47:10)
  2. Review the Lecture Slides
  3. Review the Example Code
  4. Attend Class and Complete the In Class Exercises
  5. Check Your Learning

In Class Exercises

Exercise

Add the following features to the adventure game from the prolog example code linked above:

Note: Part of your implementation should be a general way for the player to pick things up, carry them, and put them down. Design your solution so that it would be easy to add additional objects for the player to pick up and put down.