-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
132 lines (128 loc) · 5.11 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<html>
<head>
<meta charset="utf-8">
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"
type="text/javascript">
</script>
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.dom.min.js">
</script>
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.sound.min.js">
</script>
<script language="javascript" src="vehicle.js" type="text/javascript">
</script>
<script language="javascript" src="sketch.js" type="text/javascript">
</script>
<link href="main.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</link>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
</meta>
</head>
<body>
<div class="container">
<div id="canvas_panel" class="panel">
<div id="canvas"></div>
</div>
<div class="panel">
<h5>Generation: <div id="gen_num">1</div>
</h5>
<div class="tools">
<div class="variables_panel">
<label>
<input id="check_perception" type="checkbox" />
<span>Perception</span>
</label>
<div class="variables">
<div>
<input type="number" id="num_car" max=25 min=1>
<label for="num_car">Number of cars</label>
</div>
<div>
<input type="number" id="num_food" max=40 min=0>
<label>amount of food</label>
</div>
<div>
<input type="number" id="num_pois" max=40 min=0>
<label>amount of poison</label>
</div>
<div>
<input type="number" id="mr" max=2 min=0.05 step=0.05>
<label>Mutation rate</label>
</div>
<div>
<input type="number" id="new_food_pois" max=2 min=0 step=0.05>
<label>New Food</label>
</div>
</div>
<div class="confirm_variables">
<a class="waves-effect waves-light btn" id="apply_variables">Apply</a>
</div>
</div>
<div class="save_stats_panel">
<p>Save best 10 (if possible)</p>
<a class="waves-effect waves-light btn" id="save">save</a>
</br>
<label style="margin-top: 20px;">
<input id="use_best" type="checkbox" />
<span>Use best Bots to restart</span>
</br>
</br>
<p>Current number alive : <div id="curr_num_alive"></div>
</p>
</label>
</br>
<a class="waves-effect waves-light btn" id="clear">Clear</a>
</div>
<div class="start_stop_panel">
<div class="START_STOP">
<a class="waves-effect waves-light btn stop" id="STOP">STOP</a>
</div>
</div>
</div>
</div>
<div class="panel">
<h5>TOP 5 Alive Bots</h5>
<table id="alive_table">
<tr>
<th>#</th>
<th>food weight</th>
<th>poison weight</th>
<th>food perception</th>
<th>poison perception</th>
<th>Health</th>
<th>Survival Time</th>
</tr>
</table>
</div>
<div class="panel">
<h5>TOP 5 Dead Bots</h5>
<table id="dead_table">
<tr>
<th>#</th>
<th>food weight</th>
<th>poison weight</th>
<th>food perception</th>
<th>poison perception</th>
<th>Health</th>
<th>Survival Time</th>
</tr>
</table>
</div>
<div class="panel">
<h5>TOP 10 Bots of all time</h5>
<table id="best_table">
<tr>
<th>#</th>
<th>food weight</th>
<th>poison weight</th>
<th>food perception</th>
<th>poison perception</th>
<th>Health</th>
<th>Survival Time</th>
</tr>
</table>
</div>
</div>
</body>
</html>