-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcells.html
More file actions
76 lines (44 loc) · 1.95 KB
/
cells.html
File metadata and controls
76 lines (44 loc) · 1.95 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html lang="en">
<head>
<title>Cells</title>
<link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
<link href="cells.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="Banner">
<div class="Title1">Cells</div>
<a href="index.html">
<div class="Title">
Brandon Gioggia
</div>
</a>
<div class="directions"><h1><b>Instructions:</b></h1>
<p>
The box at the center of the screen is a grid full of white cells. Click in the box to turn cells <b>on</b> or <b>off</b>. All of the cells start <b>off</b>, and will turn black when they are <b>on</b>.
<br><br>
The buttons on the right side of the screen allow you to set rules for the cells to turn themselves <b>on</b> and <b>off</b>.
<br><br>
The number on each button indicates the number of neighbors a cell has that are <b>on</b>. The command at the bottom of each button indicates what the cell will do when it has that many neighbors set to <b>on</b>. You can toggle through these states by clicking.
<br><br>
Press the 'Play' button to have the cells start following your rules.
<br><br>
If you're unsure where to start, try the following combination:
<br>
0:On, 1:Off, 2:On, 3:On, 4:Off
<br></p>
</div>
<div class="Box" id="world"></div>
<div class = "Menu">
<div id="toggle" onclick="toggle()"><br>Play</div>
<div id="spacer"></div>
<div id ="but0" class="but" onclick="determineUpdate('but0')"><br>0<br><br>Do Nothing</div>
<div id ="but1" class="but" onclick="determineUpdate('but1')"><br>1<br><br>Do Nothing</div>
<div id ="but2" class="but" onclick="determineUpdate('but2')"><br>2<br><br>Do Nothing</div>
<div id ="but3" class="but" onclick="determineUpdate('but3')"><br>3<br><br>Do Nothing</div>
<div id ="but4" class="but" onclick="determineUpdate('but4')"><br>4<br><br>Do Nothing</div>
</div>
</div>
<script src="cells.js"> </script>
</body>
</html>