-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (41 loc) · 1.83 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
<!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="stylesheet" href="css/app.css">
</head>
<body onload="init()" oncontextmenu="return false;">
<div class="game">
<h1>Mine Sweeper</h1>
<div class="features">
<div class="difficulty">
<button onclick="changeDifficulty(4)" class="my-btn">Easy</button>
<button onclick="changeDifficulty(8)" class="my-btn">Normal</button>
<button onclick="changeDifficulty(12)" class="my-btn">World Class</button>
</div>
<div class="restart my-btn" onclick="restartGame(this)"> 😀 </div>
<div class="timer">Let's play</div>
<div class="lives">💜💜💜</div>
<div class="hints">
<button onclick="getHint(this,0)" class="my-btn">💡</button>
<button onclick="getHint(this,1)" class="my-btn">💡</button>
<button onclick="getHint(this,2)" class="my-btn">💡</button>
</div>
<div class="score">bestscore</div>
</div>
<div class="safe my-btn" onclick="showSafe()"></div>
<div class="manual my-btn" onclick="playManualMine()">MANUAL <br> OFF</div>
<div class="undo my-btn" onclick="undoLastMove()">UNDO</div>
<table class="table">
<tbody class="board">
</tbody>
</table>
<div class="game-over"><img src="img/gameover.jpg" alt="game-over"></div>
<div class="victory"><img src="img/victory.png" alt=""></div>
</div>
<script src="js/utilis.js"></script>
<script src="js/game.js"></script>
</body>
</html>