Maze Generation Fail
#2

Interesting issue. Long story short, you have very specific conditions for loop to go further, but you select items randomly until all blocks are used. So, with each iteration of outer loop, you have lesser and lesser chance of actually hitting those conditions.

https://gist.github.com/Misiur/99d23545ebdefdde4f57

I didn't touch logic of your code, only that loop issue. If you have any questions regarding what the hell am I doing with those iterators, ask

Cool script!
Reply


Messages In This Thread
Maze Generation Fail - by Crayder - 08.03.2015, 06:45
Re: Maze Generation Fail - by Misiur - 08.03.2015, 13:48
Re: Maze Generation Fail - by Crayder - 08.03.2015, 16:46
Re: Maze Generation Fail - by Misiur - 08.03.2015, 17:01
Re: Maze Generation Fail - by Crayder - 08.03.2015, 17:39
Re: Maze Generation Fail - by Misiur - 08.03.2015, 17:58
Re: Maze Generation Fail - by Crayder - 08.03.2015, 18:02
Re: Maze Generation Fail - by Crayder - 09.03.2015, 17:10
Re: Maze Generation Fail - by Misiur - 09.03.2015, 18:49
Re: Maze Generation Fail - by Crayder - 09.03.2015, 18:58

Forum Jump:


Users browsing this thread: 3 Guest(s)