-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
27 lines (22 loc) · 826 Bytes
/
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
<!DOCTYPE html>
<HTML>
<head>
<meta charset="utf-8">
<title>Battle Ships task</title>
<!-- Add jQuery -->
<script src="jquery-2.2.4.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="boards-container"></div>
<div id="user-interface">
<div class="winMsg"></div>
<button onclick="gameEngine.computerBoard.container.style.display = ''">Show Enemy Ships (debug)</button>
<button onclick="gameEngine.restartGame()">Restart Game!</button>
<button onclick="gameEngine.choosingBoard.selectTile(gameEngine.userBoard, gameEngine.computerBoard)">Take shot!</button>
</div>
<script src="generatePlayground.js"></script>
<script src="generateFleet.js"></script>
<script src="gameEngine.js"></script>
</body>
</HTML>