Maze solving: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 2,360: Line 2,360:
=={{header|JavaScript}}==
=={{header|JavaScript}}==
Animated: generating and solving.<br />To start solving, click to choose a 'start' and an 'end' points.
Animated: generating and solving.<br />To start solving, click to choose a 'start' and an 'end' points.
<br />Go [http://webgames.paulo-jorente.de/mazesolver here] to see it in action.
<br />Go [http://paulo-jorente.de/tests/mazesolver/ here] to see it in action.
<lang javascript>
<lang javascript>
var ctx, wid, hei, cols, rows, maze, stack = [], start = {x:-1, y:-1}, end = {x:-1, y:-1}, grid = 8;
var ctx, wid, hei, cols, rows, maze, stack = [], start = {x:-1, y:-1}, end = {x:-1, y:-1}, grid = 8;