-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
22 lines (22 loc) · 971 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html>
<html>
<head>
<title>Hamiltonian Snake</title>
<link rel='shortcut icon' href='favicon.png'>
<link rel='stylesheet' href='style.css'>
</head>
<body onload='refresh_path()' style="background-color: rgb(44, 44, 44);" id='bod'>
<script src='app.js'></script>
<p id='about'>About the game</p>
<p id='main-text'>This game of snake generates a hamiltonian circuit to always
win by filling out the entire canvas. This javascript program is an
implementation of a hamiltonian path and circuit generator by
Nathan Clisby on an n * n grid, into a game of snake. The program uses
the backbiting algorithm in order to generate the circuit which it follows.
</p>
<p id='text'>Progress: </p>
<progress id='progress' value='0' max='400'></progress>
<p id='outOf'></p>
<canvas id="path_canvas"></canvas>
</body>
</html>