-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (40 loc) · 2.12 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
<!DOCTYPE html>
<html>
<head>
<title>GameOfLife</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=2,shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="icon" href="https://www.playboicarti.com/sites/g/files/aaj12406/f/favicon_4.jpg" type="image/icon">
<link href="https://fonts.googleapis.com/css2?family=Doto&display=swap" rel="stylesheet">
<link rel="stylesheet" href="board.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bebas+Neue">
</head>
<body>
<div class="header">
<h1>Conway's Game Of Life</h1>
</div>
<div class="wrap">
<div class="menu">
<a class="button" onclick="run()" id="run">Run</a>
<a class="button" onclick="reset()" id="reset">Reset</a>
<a class="button" onclick="random()" id="random">Random</a>
<a class="button" onclick="gosperglidergun()" id="ggg">Gosper Glider Gun</a>
</div>
<div class="petriw">
<div class="board">
<table id="petri"></table>
</div>
<p><i>Petridish -- where the universe is simulated</i></p>
</div>
<div class="rules">
<p id="rules_header"><b>Rules</b></p>
<p>→ Any live cell with <b>two</b> or <strong>three</strong> live neighbours survives.</p>
<p>→ Any dead cell with <strong>three</strong> live neighbours becomes a live cell.</p>
<p>→ All other live cells die in the next generation. Similarly, all other dead cells stay dead.</p>
<p id="source">Source: <a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life" target="_blank"><img src="assets/redwiki.png" alt="wikipedia-logo" id="wiki"></a></p>
</div>
</div>
<footer>∞</footer>
<script type="text/javascript" src="game.js"></script>
</body>
</html>