-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
105 lines (97 loc) · 4.25 KB
/
index.html
File metadata and controls
105 lines (97 loc) · 4.25 KB
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
<html>
<head>
<title>AI Play Impossible Flappy Bird</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/flappybird.css" type="text/css"/>
</head>
<body>
<div id="main-content">
<h1 class="header">AI Play Impossible Flappy Bird</h1>
<div id="main-frame">
<canvas id="canvas" width="672" height="512"></canvas>
</div>
<div id="dashboard">
<h2>Control Panel</h2>
<hr>
<div>
<table class="panel-table">
<thead>
<th>Play Mode</th>
</thead>
<tbody id="playmode">
<tr>
<td>
<input type="radio" name="mode" value="human">Human Play<br>
</td>
</tr>
<tr>
<td>
<input type="radio" name="mode" value="ai" checked>AI Play (NEAT)<br>
</td>
</tr>
<tr>
<td>
<input type="radio" name="mode" value="humanvsai" checked>Human vs AI<br>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<table class="panel-table">
<thead>
<th>Game Difficulty</th>
</thead>
<tbody id="difficulty">
<tr>
<td>
<input type="radio" name="level" value="normal" checked>Normal<br>
</td>
</tr>
<tr>
<td>
<input type="radio" name="level" value="impossible">Impossible<br>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<table class="panel-table">
<thead>
<th>Settings</th>
</thead>
<tbody id="settings">
<tr>
<td>
<button id="freeze-btn" type="button">Freeze Weights (Console)</button>
</td>
</tr>
<tr>
<td>
Frame Speed
<select id="frame-speed">
<option value="24">Very Slow</option>
<option value="18">Slow</option>
<option value="12">Normal</option>
<option value="6">Fast</option>
<option value="0">Very Fast</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
<footer>
<script type="text/javascript" src="js/params.js"></script>
<script type="text/javascript" src="js/bird.js"></script>
<script type="text/javascript" src="js/neat.js"></script>
<script type="text/javascript" src="js/game_manager.js"></script>
<script type="text/javascript" src="js/control_panel.js"></script>
<script type="text/javascript" src="js/frame_updater.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</footer>
</html>