From 84b3b5d3efe7e33aeea4243c04436ce2a9a845d5 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Fri, 28 Mar 2014 19:27:05 +1100 Subject: Added list of rooms --- map.prolog | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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). -- cgit