From f59e957d741814459a0dca2993a4d3d4a2325688 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Sat, 22 Mar 2014 01:02:47 +1100 Subject: Reorganising code --- item.prolog | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 item.prolog (limited to 'item.prolog') diff --git a/item.prolog b/item.prolog deleted file mode 100644 index 11e469c..0000000 --- a/item.prolog +++ /dev/null @@ -1,22 +0,0 @@ - -:- module(item, [itemAt/2, writeItemsAt/1, canTake/1, description/2]). - - -itemAt(ladder,a). - - -writeItemsAt(L) :- - itemAt(X,L), - description(X,D), - write(D), - fail. -writeItemsAt(_) :- true. - - -canTake(gold). -canTake(deadWumpus). - - -description(ladder, 'There is a rope ladder hanging from the ceiling here.\n'). -description(gold, 'You see a glitter along the sandy floor of the cave.\n'). - -- cgit