http://www.perlmonks.org?node_id=30903


in reply to OneWay

Cool, but one problem.... The solution to the maze 9 out of 10 times is just go down, over to the right, and right back up. it generally ignores the lower part of the maze.

@:::::::((==========Rydor====>

Replies are listed 'Best First'.
RE: RE: OneWay
by Adam (Vicar) on Sep 05, 2000 at 20:15 UTC
    That's the problem with taking a fully solveable - randomly generated maze and then sticking the entrances that close together. In order to stay with-in the char count for TPJ, I was forced to drop the random entrance code. You can, of course, pick any starting and ending points you want. You can also generate larger mazes (reducing the likely-hood of an overly simplistic one) by running the script with your desired dimensions on the command line.

    OneWay.pl 39 20