-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (53 loc) · 1.69 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
<!doctype html>
<html>
<head>
<title>Minesweeper Bot!</title>
<link href="./index.css" rel="stylesheet" type="text/css" />
<script src="ai.js"></script>
<script src="drawer.js"></script>
<script src="index.js"></script>
</head>
<body>
<h1 id="heading">MineSweeper - Bot</h1>
<div id="startingFormat">
<button type="button" id="easyGameStart" class="optionButtons">Easy Game</button>
<button type="button" id="mediumGameStart" class="optionButtons">Medium Game</button>
<button type="button" id="hardGameStart" class="optionButtons">Hard Game</button>
</div>
<div id="aiFormat" hidden>
<table class="infoTable">
<tr>
<th>
<img src="./images/timer.png" class="infoIcon"/>
</th>
<th id="time">
0:00
</th>
<th />
<th />
<th>
<img src="./images/bomb.png" class="infoIcon"/>
</th>
<th id="bombs">
0
</th>
</tr>
</table>
<table id="gameTable"></table>
<button type="button" id="aiMove" class="stepButtons">Tell the AI to move :></button>
<button type="button" id="restartGame" class="stepButtons">Restart</button>
</div>
<div id="winScreen" class="resultContainer" hidden>
<h1 class="resultHeader">You Won!</h1>
<p class="resultDescription">Click here to continue</p>
</div>
<div id="loseScreen" class="resultContainer" hidden>
<h1 class="resultHeader">Oops!</h1>
<p class="resultDescription">Click here to try again</p>
</div>
</body>
<div id="images" hidden>
<img src="./images/bomb.png" width="30" height="30" id="bombIMG"/>
<img src="./images/flag.png" width="30" height="30" id="flagIMG"/>
</div>
</html>