-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
27 lines (27 loc) · 1.12 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="main.css" />
<title>SnakeAI</title>
<script src="js/SnakeAI.js"></script>
<script src="js/rng.js"></script>
<script src="js/main.js"></script>
</head>
<body onload="DomLoad()">
<canvas id="board" width="500" height="500"></canvas>
<canvas id="info" width="200" height="500"></canvas>
<p>
<button onclick="DomLoadGood()">Load good</button>
Wait up to five seconds after a snake's death for the next best to be demonstrated.
<p>
While this page is open, thousands of snakes per second are being randomly mutated
in populations of fifty individuals. The top five of each generation are "bred" with
a 20% chance of any neuron being randomly tweaked.
<a href="https://github.com/phunanon/SnakeAI">Read more.</a>
</p>
</p>
<pre> hash gen ate age</pre>
</body>
</html>