-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (63 loc) · 2.35 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
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<title>Minesweeper</title>
<script src="assets/js/libraries/p5.min.js" type="text/javascript"></script>
<script src="assets/js/libraries/p5.dom.js" type="text/javascript"></script>
<script src="assets/js/main.js" type="text/javascript"></script>
<script src="assets/js/game.js" type="text/javascript"></script>
<script src="assets/js/board.js" type="text/javascript"></script>
<script src="assets/js/cell.js" type="text/javascript"></script>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body oncontextmenu="return false;">
<div id="ui">
<div class="page-title">Minesweeper</div>
<div class="instructions-container">
<span class="title">Instructions</span> <span id="instructions-toggler" class="down-arrow"></span>
<div class="instructions">
<p>
The game begins with a grid of cells, each of which is concealed.
Some of the cells contain mines.
The goal of the game is to determine all cells that are not mines.
</p>
<p>
Left-clicking on a cell reveals it.
If it is a mine, the game is over.
Otherwise, it is labeled with a number indicating
the number of its neighboring cells that are mines.
(No label indicates zero neighboring mines.)
Revealing a cell with no neighboring mines will reveal its neighboring cells.
</p>
<p>
To aid your deduction process,
cells believed to be mines can be flagged by right-cliking them;
a right-click also unflag cells.
Note that a flagged cell can still be revealed.
</p>
<p>
Note: Currently, the cells have a 15% probability of being a mine.
</p>
</div>
</div>
<div class="stats">
<p>Mines: <span id="mines-count"></span></p>
<p>Revealed Cells: <span id="revealed-cells-count"></span></p>
<p>Marked Cells: <span id="marked-cells-count"></span></p>
</div>
<div class="timer">
<span id="game-timer"></span> seconds
</div>
<div class="restart">
<span class="button tooltip" onclick="newGame()">
New Game<span class="tooltiptext">...or press 'N'</span>
</span>
</div>
<div class="messenger">
<span id="message"></span>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.1.js"></script>
<script src="assets/js/toggleInstructions.js"></script>
</body>
</html>