Pitt-RAS / micromouse-2016

7 stars 6 forks source link

Path data structure and path-finding algorithms are coupled #102

Open ghost opened 7 years ago

ghost commented 7 years ago

For example, the flood fill algorithm is implemented within the FloodFillPath constructor, and FloodFillPath inherits from Path.

The algorithm should be its own entity that adds to a Path from the outside, rather than being in the constructor of a Path.