Skip to content

v0.0.6

Compare
Choose a tag to compare
@mjrlowe mjrlowe released this 20 Jun 19:38

Changes

  • Displaying the solution now works properly (but only from top left to bottom right at the moment): set the showSolution property to true when displaying the maze. You can customise the color with solutionColor.
  • The maze class now has a new method: .getSolution(), which returns the solution to the maze. It optionally takes in a start and end point (in that order).
  • .calulateDistances() is now .getDistances()
  • Changed getElementByTag to getElementByTagName in display() (bug fix)
  • Removed files needed for Github packages. (I have given up trying to get it to be able to be both a Github and npm package.)
  • A couple of other very minor changes