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
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js"></script>
<script src="toy_nn/matrix.js"></script>
<script src="toy_nn/nn.js"></script>
</head>
<body>
<h1>Raytracing A.I.</h1>
<div id="navbar">
<a id="current">Original</a>
<a>Improved</a>
<a>More Improved</a>
</div>
<p>
This is an AI where cars try to go as far as they can on a road,
while avoiding the walls of the road.
</p>
<p id="path">
Click on the dark-grey area to make the road.
<button id="finish">Finish Path</button>
</p>
<p id="params" style="display: none">
Path-making method:
<select>
<option>Keep the same path for every generation.</option>
<option>Generate a new path for every generation.</option>
<option>Interactively make a new path for every generation.</option>
</select>
<br/>
<button id="start">Start Simulation</button>
</p>
<script src="boundary.js"></script>
<script src="ray.js"></script>
<script src="path.js"></script>
<script src="car.js"></script>
<script src="trace_ai.js"></script>
<script src="ga.js"></script>
<script src="sketch.js"></script>
</body>
</html>