forked from beltoforion/Educational-Javascripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simulated_evolution.html
35 lines (34 loc) · 1.44 KB
/
simulated_evolution.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Simulated Evolution</title>
<script src="javascript_samples/simulated_evolution/simulated_evolution.js"></script>
<link rel="stylesheet" type="text/css" href="./styles/index.css"/>
<link rel="stylesheet" type="text/css" href="./styles/article.css"/>
<style type="text/css">
canvas { border: 1px solid black; }
</style>
</head>
<body onload="main();" class="article">
<h2 class="article_caption">Example 1: Simulated Evolution</h2>
<p>
This is the demonstration page of the "Simulated Evolution" javascript applet. For more details about
the please turn to the <a href="http://articles.beltoforion.de/article.php?a=simulated_evolution" target="_blank">original simulated evolution article</a>.
</p>
<table class="noborder">
<tr>
<td class="noborder">
<canvas id="cvMain" width="800" height="600"></canvas>
</td>
</tr>
<tr>
<td class="noborder">
<input id="btnAgeOfUneventfullness" type="button" value="Even food distribution" onclick="spawn_strategy=0;" style="width:195px; height:60px;"/>
<input id="btnAgeOfLines" type="button" value="Food Spawns in Lines" onclick="spawn_strategy=1;" style="width:195px; height:60px;"/>
<input id="btnAgeOfRectangle" type="button" value="Food spawns in a Rectangle" onclick="spawn_strategy=2;" style="width:195px; height:60px;"/>
</td>
</tr>
</table>
</body>
</html>