-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (46 loc) · 1.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<title>Game of Life</title>
<meta name="description" content="Conway's Game of Life — zero-player game">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Game of Life</h1>
</header>
<main>
<section class="game">
<canvas class="gameCanvas" width="480" height="300">
Your browser does not support HTML 5 canvas
</canvas>
<section class="gameButtons">
<div>
<button class="randomizeButton">Randomize</button>
<button class="clearButton">Clear</button>
</div>
<div>
<button class="startButton">Start</button>
<button class="stopButton">Stop</button>
</div>
</section>
</section>
<section class="rules">
<h2>Rules</h2>
<ol>
<li>Any live cell with fewer than two live neighbours dies, as if by underpopulation.</li>
<li>Any live cell with two or three live neighbours lives on to the next generation.</li>
<li>Any live cell with more than three live neighbours dies, as if by overpopulation.</li>
<li>Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.</li>
</ol>
</section>
</main>
<footer>©2025 Dmitrii Ivanushkin</footer>
<script src="game.js" defer></script>
<script src="index.js" defer></script>
</body>
</html>