This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Maze Generator

Return to Maze Generator

SpilliSpilli

2012/4/20

I really like this, I think you should make this in 3D, using the same algorithm as this.
toytttttttoytttttt

2012/10/21

Woah... Are the mazes always possible?
danpostdanpost

2012/10/21

Yes, the mazes are always possible!
danpostdanpost

2012/10/21

Oh, and thanks for voting!
danpostdanpost

2012/10/21

As far as the mazes being always possible, I mean you can get from any one location to any other location within the maze.
A new version of this scenario was uploaded on Mon Oct 22 11:11:31 UTC 2012 Improved bars and now totally documented.
WayneWayne

2017/5/22

Hi, I was wondering how I could go about adding collisions with the walls and a playable character in the maze. Would using the boolean[] blocked = { true, true, true, true } array be a good place to start? I am not very experienced with coding and the level of coding used in the maze is way above me.
danpostdanpost

2017/5/22

@Wayne, you can have a 'canMove' method that can check to see if the player can move in the direction it is facing using: return ((Cell)getOneIntersectingObject(Cell.class)).blocked[getRotation()/90] == false; If you have issues with this, start a discussion thread instead of posting here.
A new version of this scenario was uploaded on 2018-01-30 19:28:17 UTC
A new version of this scenario was uploaded on 2018-01-30 19:29:00 UTC
danpostdanpost

2018/1/30

Now updated for HTML5 viewing.
Heet_PatelHeet_Patel

2018/1/30

thanks
Heet_PatelHeet_Patel

2018/1/30

i dont get what you are supposed to do
danpostdanpost

2018/1/30

@Heet_Patel, this one is just a demo that creates mazes using different parameters. It is not a game in itself. I am searching for the other one to update.
Heet_PatelHeet_Patel

2018/2/7

Okay so where can you enter and where can you leave the maze even if this isn't a game.
Heet_PatelHeet_Patel

2018/2/7

What are the green dot's for
danpostdanpost

2018/2/7

@Heet_Patel, you can start anywhere and end anywhere. No location is inaccessible from any other location. The green dots are just "tracers" used in building the maze. They hold information for a location until that location is confirmed to accessible in the final production of the maze.