-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (40 loc) · 1.37 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
<!DOCTYPE html>
<html>
<head><title>Play Battleship</title></head>
<link href="style.css" rel="stylesheet">
<script src="script.js" defer></script>
<body>
<div id="main">
<h2>Battleship</h2>
<p id="description"></p>
<div id="steps">
<ul>
<li>1. Put all ships to board</li>
<li>2. Play Now button would be shown up after all ships had been put by both players</li>
<li>3. Click on board to attack</li>
<li>4. Destroy all your enemy's ships</li>
</ul>
</div>
<button style="display: none;" id="play">Play Now!</button>
<button style="display: block;" id="play">Hint!</button>
<div id="action">
<select name="direction">
<option value="ver">Vertical</option>
<option value="hor">Horizontal</option>
</select>
<select name="ship">
<option value="carrier">Carrier</option>
<option value="battleship">Battleship</option>
<option value="destroyer">Destroyer</option>
<option value="submarine">Submarine</option>
<option value="patrol">Patrol</option>
</select>
<button type="submit" id="submit">Submit</button>
</div>
<button type="submit" id="changePlayer">Change Player</button>
<div id="board">
</div>
<div id="status"></div>
</div>
</body>
</html>