-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbattleship.html
116 lines (113 loc) · 4.86 KB
/
battleship.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<html>
<head>
<link rel="stylesheet" href="battleship.css" />
<div class = "gamename">
<p> Battleship </p>
</div>
</head>
<body>
<div class="row">
<div class="lab" data-cellnum="A">A</div>
<div class="col" data-cellnum="1"></div>
<div class="col" data-cellnum="2"></div>
<div class="col" data-cellnum="3"></div>
<div class="col" data-cellnum="4"></div>
<div class="col" data-cellnum="5"></div>
<div class="col" data-cellnum="6"></div>
<div class="col" data-cellnum="7"></div>
<div class="col" data-cellnum="8"></div>
</div>
<div class="row">
<div class="lab" data-cellnum="B">B</div>
<div class="col" data-cellnum="9"></div>
<div class="col" data-cellnum="10"></div>
<div class="col" data-cellnum="11"></div>
<div class="col" data-cellnum="12"></div>
<div class="col" data-cellnum="13"></div>
<div class="col" data-cellnum="14"></div>
<div class="col" data-cellnum="15"></div>
<div class="col" data-cellnum="16"></div>
</div>
<div class="row">
<div class="col" data-cellnum="17"></div>
<div class="col" data-cellnum="18"></div>
<div class="col" data-cellnum="19"></div>
<div class="col" data-cellnum="20"></div>
<div class="col" data-cellnum="21"></div>
<div class="col" data-cellnum="22"></div>
<div class="col" data-cellnum="23"></div>
<div class="col" data-cellnum="24"></div>
</div>
<div class="row">
<div class="col" data-cellnum="25"></div>
<div class="col" data-cellnum="26"></div>
<div class="col" data-cellnum="27"></div>
<div class="col" data-cellnum="28"></div>
<div class="col" data-cellnum="29"></div>
<div class="col" data-cellnum="30"></div>
<div class="col" data-cellnum="31"></div>
<div class="col" data-cellnum="32"></div>
</div>
<div class="row">
<div class="col" data-cellnum="33"></div>
<div class="col" data-cellnum="34"></div>
<div class="col" data-cellnum="35"></div>
<div class="col" data-cellnum="36"></div>
<div class="col" data-cellnum="37"></div>
<div class="col" data-cellnum="38"></div>
<div class="col" data-cellnum="39"></div>
<div class="col" data-cellnum="40"></div>
</div>
<div class="row">
<div class="col" data-cellnum="41"></div>
<div class="col" data-cellnum="42"></div>
<div class="col" data-cellnum="43"></div>
<div class="col" data-cellnum="44"></div>
<div class="col" data-cellnum="45"></div>
<div class="col" data-cellnum="46"></div>
<div class="col" data-cellnum="47"></div>
<div class="col" data-cellnum="48"></div>
</div>
<div class="row">
<div class="col" data-cellnum="49"></div>
<div class="col" data-cellnum="50"></div>
<div class="col" data-cellnum="51"></div>
<div class="col" data-cellnum="52"></div>
<div class="col" data-cellnum="53"></div>
<div class="col" data-cellnum="54"></div>
<div class="col" data-cellnum="55"></div>
<div class="col" data-cellnum="56"></div>
</div>
<div class="row">
<div class="col" data-cellnum="57"></div>
<div class="col" data-cellnum="58"></div>
<div class="col" data-cellnum="59"></div>
<div class="col" data-cellnum="60"></div>
<div class="col" data-cellnum="61"></div>
<div class="col" data-cellnum="62"></div>
<div class="col" data-cellnum="63"></div>
<div class="col" data-cellnum="64"></div>
</div>
</div>
<p>
<div id="status"></div>
</p>
</div>
<div>
<button id = "resetbutton">reset</button>
</div>
<div class ="shipbuttons">
<p>
<button id="carrier">Carrier</button>
</p>
<button id="battleship">Battleship</button>
<button id="cruiser">Cruiser</button>
<button id="submarine">Submarine</button>
<button id="destroyer">Destroyer</button>
<button id="done">Done</button>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
<script src="battleship.js"></script>
</body>
</html>