summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--map.prolog5
1 files changed, 4 insertions, 1 deletions
diff --git a/map.prolog b/map.prolog
index 2c5613a..84ec8c4 100644
--- a/map.prolog
+++ b/map.prolog
@@ -1,5 +1,5 @@
-:- module(map, [connects/3]).
+:- module(map, [roomList/1, connects/3]).
% map has 20 rooms, labelled a through t
@@ -8,6 +8,9 @@
% the edges
+roomList(X) :- X = [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t].
+
+
% loop around the middle
connects(a,b,northeast).