Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cs4700/projects/prolog/adventure/adventure.pl
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,13 @@
location(book_c,special_collections).
location(bunsen_burner,chemistry_lab).
location(closet,eslc_south).
location(closet,eslc_south).
location(coat,green_beam).
location(combination_gas,ser_conference).
location(dirty_clothes, bedroom_closet).
location(figurine,bedroom).
location(flask,chemistry_lab).
location(fly,roommate_room).
location(goggles,closet).
location(goggles,closet).
location(key,coat).
location(kitchen_stove, kitchen).
location(kitchen_trashcan,kitchen).
Expand All @@ -111,7 +109,6 @@
location(medium_disk,pylon_a).
location(movie, roomate_room).
location(note,bedroom).
location(note,bedroom).
location(pylon_a,secret_lab).
location(pylon_b,secret_lab).
location(pylon_c,secret_lab).
Expand Down Expand Up @@ -235,6 +232,7 @@
name(wash_machine,"Washing Machine").
name(money, "Money").
name(vending_machine, "Vending machine").
name(bag_of_chips, "Bag of Chips").

short_desc(agricultural_science,"Looks like a nice place to grab a bite.").
short_desc(animal_science,"a cozy-looking, white-bricked old building.").
Expand Down Expand Up @@ -311,6 +309,7 @@
short_desc(wash_machine,"An old beat up washing machine used for cleaning students' foul smelling clothes").
short_desc(money, "A couple of dollars.").
short_desc(vending_machine, "A vending machine located in the TSC.").
short_desc(bag_of_chips, "A small bag of potatoe chips.").

long_desc(agricultural_science, "There is a line of students waiting to eat at the cafe. Everyone seems to be in a hurry.").
long_desc(avenue,"A myriad of people walk every which way along the avenue. All are seemingly unaware of their imminent destruction at Dr.Sundberg's hand.").
Expand Down Expand Up @@ -385,6 +384,7 @@
long_desc(wash_machine,"You open the door and to your surprise the washing machine is empty and available to use. You shut the door again.").
long_desc(money, "A couple of dollars found on your dresser. You've heard it can be exchanged for goods and services.").
long_desc(vending_machine, "The vending machine is stocked with a large variety of chips. The machine requires money to use, of course.").
long_desc(bag_of_chips, "A small bag of salty, delicious potatoe chips. This is quite possibly the only food a college student like yourself needs to survive.").

puzzle(laser_lab):-has(goggles),!.
puzzle(laser_lab):-write("It is too dangerous to go in without eye protection."),nl,!,fail.
Expand Down