-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (44 loc) 路 2.28 KB
/
Copy pathindex.html
File metadata and controls
44 lines (44 loc) 路 2.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minesweeper game</title>
<link rel="stylesheet" href="style.css">
<script src="app.js"></script>
</head>
<body>
<div class="container">
<div class="container-left">
<p class="title">Welcome to Minesweeper!</p>
<div class="grid"></div>
<div class="flags">Flags left: <span id="flags-left"></span></div>
<div id="result"></div>
</div>
<div class="container-right">
<p style="font-size: 20px;font-family: monospace;">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-info-circle" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
<path d="M8.93 6.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588z"/>
<circle cx="8" cy="4.5" r="1"/>
</svg>
Instructions
</p>
<ul class="instructions">
<li>Click on 'Start Game' to start.</li>
<li>The rule of the game is simple: Click on a block to find out number of mines adjacent
to it and you have to flag all the mines馃挘.</li>
<li>If a block does not have a number, then there are no mines around it.</li>
<li>Put a <strong>flag</strong>馃毄 in a block by right click when you have confirmed that there is a mine.</li>
<li>If you correctly place all flags on all mines, you WIN!</li>
<li>Click on 'Reset Game' if you want to reset the game.</li>
<li>Now that you know how to play, let's get <em>sweeping</em>!</li>
</ul>
<div class="buttons">
<button type="button" id="startButton">Start Game</button>
<button type="button" id="resetButton" onclick="javascript:history.go(0)">Reset Game</button>
</div>
</div>
</div>
</body>
</html>