sraaphorst / spelunker

Maze generation and solving library
Other
11 stars 2 forks source link

Add some parameterized superclasses? #69

Closed sraaphorst closed 6 years ago

sraaphorst commented 6 years ago

We could easily create a parameterized superclass of the various MazeGenerators instead of the three unrelated ones that there will be when I create GraphMazeGenerator.

This could be extended to various other things, like the maze types themselves, which would force and encapsulate some standard functions, like starting cell, ending cells, walls, etc.

sraaphorst commented 6 years ago

This was done as part of the PR for #66 - we now have AbstractMaze, which handles maze dimensions, starting cell ending cells, and finding dead ends, as well as an AbstractMazeGenerator, which handles dimensions.