From af39f59ffee6dd19d6811c2ba34f61604f34f7e5 Mon Sep 17 00:00:00 2001 From: Sam Palmer Date: Fri, 29 Nov 2019 15:58:41 -0700 Subject: [PATCH 1/2] Added name and descriptions for bag_of_chips. --- cs4700/projects/prolog/adventure/adventure.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cs4700/projects/prolog/adventure/adventure.pl b/cs4700/projects/prolog/adventure/adventure.pl index 3a025d9..448f24e 100644 --- a/cs4700/projects/prolog/adventure/adventure.pl +++ b/cs4700/projects/prolog/adventure/adventure.pl @@ -235,6 +235,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."). @@ -311,6 +312,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."). @@ -385,6 +387,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. From 73c2e7041efcbf35c996b664f3b57f67dc038fe2 Mon Sep 17 00:00:00 2001 From: Sam Palmer Date: Fri, 29 Nov 2019 16:00:46 -0700 Subject: [PATCH 2/2] Removed duplicate location information. --- cs4700/projects/prolog/adventure/adventure.pl | 3 --- 1 file changed, 3 deletions(-) diff --git a/cs4700/projects/prolog/adventure/adventure.pl b/cs4700/projects/prolog/adventure/adventure.pl index 448f24e..2bedcb8 100644 --- a/cs4700/projects/prolog/adventure/adventure.pl +++ b/cs4700/projects/prolog/adventure/adventure.pl @@ -92,7 +92,6 @@ 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). @@ -100,7 +99,6 @@ 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). @@ -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).