From af78c32c6a2e181f2e7765cdda07af7ae6a187e2 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Mon, 31 Mar 2014 16:26:09 +1100 Subject: Bats now drop you completely randomly, not just in safe rooms --- agent.prolog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent.prolog b/agent.prolog index a575b2f..d936d3f 100644 --- a/agent.prolog +++ b/agent.prolog @@ -192,10 +192,10 @@ checkBats :- batsAt(Location), write('A giant bat swoops down, picks you up, and deposits you elsewhere in the cave.\n\n'), roomList(Rooms), - filter(Rooms, somethingAt, emptyRooms), - random_member(NewLocation, emptyRooms), + random_member(NewLocation, Rooms), retract(here(Location)), - asserta(here(NewLocation)). + asserta(here(NewLocation)), + checkHazards. checkBats :- true. -- cgit