summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2014-03-28 19:27:05 +1100
committerJed Barber <jjbarber@y7mail.com>2014-03-28 19:27:05 +1100
commit84b3b5d3efe7e33aeea4243c04436ce2a9a845d5 (patch)
tree5e20199bc1a400f62704f56f4251d8170d054a7a
parent3a9d367a7b6a589006c7b59ee3399cf3434e2b99 (diff)
Added list of rooms
-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).