summaryrefslogtreecommitdiff
path: root/mazesolver.html
blob: 64d15a4f692e6e400d0a4b96a188dcdade0d76ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html>

    <head>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <link href="css/style.css" rel="stylesheet">
        <title>Maze Solver</title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    </head>

    <body>

        <div id="navbar"></div>
        <script src="navbar.js"></script>
        <h2>Maze Solver</h2>
        <hr>

        <p>Maze Solver is a computer program that can solve mazes.<br>
        It works using <a href='https://www.khanacademy.org/computing/computer-science/algorithms/intro-to-algorithms/a/route-finding'>this algorithm</a>. To create a
        maze, just left-click and drag on the screen below to create walls, middle-click to clear walls, and right-click to place start and ending locations. Then,
        click the button saying "Solve Maze" and it will draw red circles connecting your start location to your end location.</p>

        <button onclick='startCreation();' id='StartButton'>Create Maze</button><br><br>

        <p id='DoesItWork' style="color:#ff0000;"></p>

        <form id='Form'>
        Size: <input type='number' value=50>
        </form>

        <canvas height=0 width=0 id='Canvas' oncontextmenu='return false;'></canvas>

        <script src="js/mazesolver.js"></script>


    </body>
    <footer>
        <p>MazeSolver is licensed under the <a href='LICENSE.txt'>GNU General public license</a>.</p>
    </footer>

</html>