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

Report as inappropriate.

Timothy1
Timothy1 presents ...

2023/4/28

Project 3 - Maze Generator

No description.

734 views / 3 in the last 7 days

1 vote | 0 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2023-04-28 22:13:50 UTC Running the application initially prompts the user for a size n (width) and size m (height) (works best with odd numbers <= 49), at which point a maze is generated and a path is draw in green from the starting positiong [0, 0] (top left corner) to the exit position [n-1, m-1] (top right corner).
A new version of this scenario was uploaded on 2023-04-28 22:37:10 UTC
A new version of this scenario was uploaded on 2023-04-28 22:59:09 UTC Added path string to show what cardinal directions to move in to solve the maze. Outputting them on the screen works well if maze is small, otherwise press F12 to see it printed in the browser developer console.
A new version of this scenario was uploaded on 2023-04-28 23:26:17 UTC Cleaned up console logs

Want to leave a comment? You must first log in.

Who likes this?

Hi_there6