-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (48 loc) · 1.92 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Game of Life - Fullstack Academy</title>
<link rel="stylesheet" href="libraries/bootstrap.min.css">
<link rel="stylesheet" href="game.css">
</head>
<body>
<h2>Game of Life</h2>
<table id='board'></table>
<div id='control_panel'>
<button id='step_btn' class='btn btn-success'>Step</button>
<button id='play_btn' class='btn btn-primary'>Play</button>
<button id='pause_btn' class='btn btn-info'>Pause</button>
<button id='reset_btn' class='btn btn-warning'>Randomize</button>
<button id='clear_btn' class='btn btn-info'>Clear</button>
</div>
<p>
The universe of the <a hreg="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">Game of Life</a> is an infinite two-dimensional orthogonal
grid of square cells, each of which is in one of two possible states,
alive or dead, or "populated" or "unpopulated". Every cell interacts
with its eight neighbours, which are the cells that are horizontally,
vertically, or diagonally adjacent. At each step in time, the following
transitions occur:
<br>
<br>
Any live cell with fewer than two live neighbors dies, as if caused by
underpopulation.
<br>
Any live cell with two or three live neighbors lives on to the next
generation.
<br>
Any live cell with more than three live neighbors dies, as if by
overpopulation.
<br>
Any dead cell with exactly three live neighbors becomes a live cell,
as if by reproduction.
</p>
<br><br>
<footer class="footer">
<div class="container">
<p class="text-muted">Built by <a href="http://www.github.com/aubreyarcangel">Aubrey Arcangel</a> at <a href="http://www.fullstackacademy.com/">Fullstack Academy</a></p>
</div>
</footer>
<script src="game.js"></script>
</body>
</html>