Re: [NEWBIE] Recursing through rooms?

From: Ron Cole (rcole@ezy.net)
Date: 03/11/01


>I know how to check my adjacent room, but i'm not sure how to recuse for a
>number of times AND not do my checking / printing in the same room a
>multiple number of times as the recurse trails back to the starting room.

Look at the tracking code, graph.c I think, that's how it works.  A room flag
is used to mark off rooms already checked.  You'll have to modify it a bit
for what you want but the technique is there.

Ron

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST