Can I use this on my code? #6
Replies: 10 comments
-
Hello, it would be nice to give me some info on your project and yourself. As the license info for my project says, you are free to use it for whatever you want, as long as you adhere to the very permissive MIT license. Regards |
Beta Was this translation helpful? Give feedback.
-
Thank you for answering and sorry if I am too long, I am just making a game where it has mazes in it, and I couldn't figure out how to make one, so I found this thingy. about myslef i dont know how to describe it |
Beta Was this translation helpful? Give feedback.
-
I would recommend using the code inside the mazes-simplified project. It has no dependencies to other projects (graph etc.) and is self-contained. Do you want to create mazes inside Minecraft? |
Beta Was this translation helpful? Give feedback.
-
Actually, no, I am making a game. But thanks for the recommendation! |
Beta Was this translation helpful? Give feedback.
-
Actually, let's say yes to the last question. It's similar to that |
Beta Was this translation helpful? Give feedback.
-
So good luck. If you have any questions regarding the maze generation part, you are welcome. |
Beta Was this translation helpful? Give feedback.
-
I have one question, how to make the walls of the maze in the cell, like |
Beta Was this translation helpful? Give feedback.
-
This is the graph structure (blue circles = nodes, black lines = edges): |
Beta Was this translation helpful? Give feedback.
-
Sorry, I don't understand. |
Beta Was this translation helpful? Give feedback.
-
What exactly? Aren't you familiar with graph-theoretic notions (graph, node, edge, tree, spanning tree) or something else? The blue circles, the "nodes" of the graph (only some of them are drawn, the rest of the graph is similar) are arranged on a grid (rows, columns). Initially there are no connections (edges) between any circles. The maze generation algorithm computes connections (edges) between these circles (only between neighbors and only towards north, east, south or west neighbor). When the maze generator has finished, each circle can be reached from each other circle via a unique path. That means in graph-theoretic notion, we have created a "spanning tree" for the grid. And this spanning tree can then be used to draw such a picture as above or to create a 3D maze. |
Beta Was this translation helpful? Give feedback.
-
see title
Beta Was this translation helpful? Give feedback.
All reactions