mirror of
https://github.com/wassname/rl_2d_walker.js.git
synced 2026-09-23 13:40:48 +08:00
46 lines
1.4 KiB
HTML
46 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>HTML5 Genetic Algorithm Biped Walkers</title>
|
|
<link rel="stylesheet" href="css/walkers.css" type="text/css" />
|
|
<script src="vendor/jsbox2d.js"></script>
|
|
<script src="vendor/neurojs-v2.js"></script>
|
|
<script src="js/walker.js"></script>
|
|
<script src="js/game.js"></script>
|
|
<script src="js/floor.js"></script>
|
|
<script src="js/draw.js"></script>
|
|
<script src="js/agent.js"></script>
|
|
<script>
|
|
|
|
function init() {
|
|
gameInit();
|
|
}
|
|
|
|
window.addEventListener("load", init, false);
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="main_holder">
|
|
<h1>Reinforcement Learning 2D Humanoid Walkers</h1>
|
|
<h3 id="page_quote">"Play that funky music, robot"</h3>
|
|
<canvas id="main_screen" width="800" height="350"></canvas>
|
|
<div id="generation_timer"><div id="generation_timer_bar"> </div></div>
|
|
|
|
<div id="info"></div>
|
|
|
|
<div class="row">
|
|
<button onclick="window.downloadBrain(0);">Save agent</button>
|
|
<button onclick="document.getElementById('brainFile').click();">Open brain file</button>
|
|
</div>
|
|
|
|
<input id="brainFile" type='file' accept='*/*' onchange='window.readBrain(event)' style="display: none">
|
|
|
|
<div style="margin-top: 20px"><input type="checkbox" onclick="window.updateIfLearning(this.checked);" checked>Learning</div>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|