This recursion is supposed to solve a 2d array maze of n size.
Here's the given algorithm:
Begin with the maze's space with no walls. Call this a chamber. Divide the chamber with a randomly positioned wall where each wall contains a randomly positioned passage opening within it. Then recursively repeat the process on the subchambers until all chambers are minimum sized.
I'm really not sure how to even start this off. Sorry I don't have a specific question besides just where to start or simply, how to write this. Any help would be greatly appreciated. Thanks.
Recursive Division Algorithm?
Page 1 of 11 Replies - 365 Views - Last Post: 15 November 2012 - 02:29 PM
Replies To: Recursive Division Algorithm?
#2
Re: Recursive Division Algorithm?
Posted 15 November 2012 - 02:29 PM
I guess you should start with a class Chamber
that holds instances of the class Wall
that holds instances of the class Wall
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|