Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moderocky/maze
https://github.com/moderocky/maze
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/moderocky/maze
- Owner: Moderocky
- Created: 2024-06-06T13:04:50.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-08T13:31:22.000Z (5 months ago)
- Last Synced: 2024-06-08T18:09:11.237Z (5 months ago)
- Language: Java
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Maze
=====This is a little library for generating (and handling) mazes in Java.
I wanted to create mazes for a project and found no suitable maze-generating libraries online.
The ones I did find were either:- Unsuitable for converting into the format I needed
- Impossible to customise or control in any meaningful way
- Ridiculously greedy for memoryThis was designed with the following abilities in mind:
1. To represent mazes in a wall-and-path pixel layout. \
For any (x,y) coordinate in the maze, you can test whether that position is a path or a wall,
and metadata about the position (e.g. is it on the correct path? Is it an intersection?)
2. To allow fine-grain control over the maze generation. \
The ability to set the start and end points, to create multiple exits, etc.
3. To minimise the memory footprint, and allow very large mazes to be generated.
> Note to fellow maze library creators: \
Please, for goodness' sake, don't create a table of individual `Cell` objects :(