-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (82 loc) · 3.22 KB
/
index.html
File metadata and controls
82 lines (82 loc) · 3.22 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
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Игра «Жизнь»</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000;
margin: 0;
}
#container {
display: flex;
flex-direction: row;
align-items: center;
}
#description {
color: white;
max-width: 300px;
margin-right: 20px;
}
canvas {
border: 1px solid #fff;
}
.controls {
display: flex;
flex-direction: column;
margin-left: 20px;
}
button, input[type="range"], select {
padding: 10px;
margin-bottom: 10px;
font-size: 16px;
}
h1 {
color: white;
text-align: center;
margin-bottom: 20px;
}
p {
color: white;
text-align: center;
}
</style>
</head>
<body>
<div id="container">
<div id="description">
<! -- commit 1 -- !>
<! -- commit 2 -- !>
<! -- commit 3 -- !>
<! -- commit 4 -- !>
<! -- commit 5 -- !>
<! -- commit 1 lab3.1 -- !>
<! -- commit 2 lab3.1 -- !>
<! -- commit 3 lab3.1 -- !>
<! -- commit 1 lab3.2 -- !>
<! -- commit 2 lab3.2 -- !>
<! -- commit 3 lab3.2 -- !>
<! -- commit 1 lab4 -- !>
<h2>Описание</h2>
<p>Игру «Жизнь» придумал американский математик Джон Хортон Конуэй (хотя его научные интересы вполне серьезны, например, теория групп и теория чисел). Для этой игры вам не понадобится партнер — в неё можно играть одному. Возникающие в её процессе ситуации очень похожи на реальные процессы, происходящие при зарождении, развитии и гибели колонии живых организмов. По этой причине «Жизнь» можно отнести к быстро развивающейся в наши дни категории игр, имитирующих процессы, происходящие в живой природе</p>
</div>
<div>
<h1>Игра «Жизнь» математика Джона Хортона Конуэя</h1>
<canvas id="gameCanvas" width="800" height="800"></canvas>
<p>Используйте мышь для рисования начальной конфигурации игры</p>
</div>
<div class="controls">
<button id="startButton">Старт</button>
<button id="stopButton">Стоп</button>
<label for="speedRange" style="color:white">Скорость:</label>
<input type="range" id="speedRange" min="50" max="1000" value="200">
</div>
</div>
<script src="gameOfLife.js"></script>
</body>
</html>