I am attempting to create a maze program in Prolog, whereby the aim is to find a route from the start of the maze to a point in the centre of the maze called m. The maze consist
You defined changecolour and never used it; you used nextcolour but never defined it.
changecolour
nextcolour