This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (76 loc) · 2.75 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
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Mine Sweeper</title>
<style>
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
font: inherit;
vertical-align: baseline;
}
td img {
display: block;
}
.canBeClickedOn {
cursor:pointer;
}
</style>
</head>
<body onload='BuildBoard()'>
<table id="board" class="canBeClickedOn" style="display:inline-block"></table>
<div style="display:inline-block; vertical-align:top">
<font size="+2">
<div>
Rules:
</div>
</font>
<font size="+1">
<div>
The object of Minesweeper is to expose all the open areas on the board
<br />
without hitting any bombs.
<br />
Use the left click button on the mouse to select a space on the grid.
<br />
If you hit a bomb, you lose.
<br />
The numbers on the board represent how many bombs are adjacent to a square.
<br />
For example, if a square has a "3" on it, then there are 3 bombs next to that square.
<br />
The bombs could be above, below, right left, or diagonal to the square.
<br />
Avoid all the bombs and expose all the empty spaces to win Minesweeper.
<br />
The Number of mines is a tenth of the multiplication of the number of rows and columns.
<br />
Tip: Use the numbers to determine where you know a bomb is.
<br />
Tip: You can right click a square with the mouse to place a flag where you think a bomb is.
<br />
This allows you to avoid that spot and not lose on accident.
</div>
</font>
<br />
<button onclick="EndOfGame();">
Play again!
</button>
</div>
<img id="loseImage"/>
<img id="winImage"/>
<script src="main.js"></script>
</body>
</html>