-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (56 loc) · 2.29 KB
/
index.html
File metadata and controls
61 lines (56 loc) · 2.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mine Sweeper</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" type="image/png" href="favicon.png"/>
</head>
<body onload="init('easy')">
<h1>🚩Mine Sweeper🚩</h1>
<div class="audio-control" onclick="handleAudio()"> 🔊 sound on </div>
<div class="game-main">
<div class="options-info">
<span class="level-choice">
<button onclick="handleLevel(4)">easy 💣2</button>
<button onclick="handleLevel(8)">medium 💣12</button>
<button onclick="handleLevel(12)">hard 💣30</button></span>
<br>
<span class="safe-click" onclick="showSafeCell()"></span>
<span class="sneak-peek" onclick="sneakPeekOn()">💡</span>
<span class="lives"></span>
<br>
<span class="player" onclick="restart()"></span>
</div>
<div class="game-board">
<table></table>
</div>
<div class="timer">00:00</div>
<div class="best-time"></div>
<button class="undo-btn" onclick="undo()"> undo ↺ </button>
</div>
<span class="guide-btn" onclick="guideToggle()">❔</span>
<div class="guide hidden">
welcome!
<br><br>
🧨your goal is to mark all mines with flags and reveal all other tiles
<br> <br>
🏁right click to flag or unflag a tile <br>
📱playing from your android? long press to flag / unflag
<br><br>
💡 reveal a chosen tile and its surrounding for 1 second <br>
🧐 find a safe tile to press on
<br><br>
↺ you can undo steps <b>as long as game is not over</b><br>
🐈 restart by clicking on the cat's face <br>
<br>
good luck, and DON'T BLOW IT UP! 💢
</div>
<script src="js/util.js"></script>
<script src="js/game.js"></script>
<script src="js/helpers.js"></script>
</body>
</html>