(Using Blender 2.58a)
I’m working on this maze creator project and I wanted to set up an option to generate a random maze based on the Prim’s algorithm. The maze is made up of blocks which can be carved out to leave empty spaces. These blocks are stored in a dictionary.
Here’s how the algorithm works:
1. Pick a block to start at, add it to the maze list 2. Get a random block from the maze list to work on -This would be the spawn block if run the first time 3. Get the walls of this random block 4. Pick a random wall and get the neighboring cell on the other side 5. If the neighbor cell isn't already in the maze list, add it to the list and remove the block between it and the current cell 6. Repeat step 2 until all original empty cell blocks have been added to the maze list
I get this error involving the randint function from the random module.
I’m unfamiliar with what this error means, I can only guess that it ran out of memory. Any help would be greatly appreciated, or suggestions of a new maze generation algorithm that doesn’t pose this problem.