-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (125 loc) Β· 4.5 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Battleship</title>
<link rel="stylesheet" href="css/main.css" media="screen" title="no title" charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
<table class="board">
<th></th>
<th>A</th>
<th>B</th>
<th>C</th>
<th>D</th>
<th>E</th>
<th>F</th>
<th>G</th>
<th>H</th>
<tr class="row">
<th>1</th>
<td class="cell 1A">π</td>
<td class="cell 1B">π</td>
<td class="cell 1C">π</td>
<td class="cell 1D">π</td>
<td class="cell 1E">π</td>
<td class="cell 1F">π</td>
<td class="cell 1G">π</td>
<td class="cell 1H">π</td>
</tr>
<tr class="row">
<th>2</th>
<td class="cell 2A">π</td>
<td class="cell 2B">π</td>
<td class="cell 2C">π</td>
<td class="cell 2D">π</td>
<td class="cell 2E">π</td>
<td class="cell 2F">π</td>
<td class="cell 2G">π</td>
<td class="cell 2H">π</td>
</tr>
<tr class="row">
<th>3</th>
<td class="cell 3A">π</td>
<td class="cell 3B">π</td>
<td class="cell 3C">π</td>
<td class="cell 3D">π</td>
<td class="cell 3E">π</td>
<td class="cell 3F">π</td>
<td class="cell 3G">π</td>
<td class="cell 3H">π</td>
</tr>
<tr class="row">
<th>4</th>
<td class="cell 4A">π</td>
<td class="cell 4B">π</td>
<td class="cell 4C">π</td>
<td class="cell 4D">π</td>
<td class="cell 4E">π</td>
<td class="cell 4F">π</td>
<td class="cell 4G">π</td>
<td class="cell 4H">π</td>
</tr>
<tr class="row">
<th>5</th>
<td class="cell 5A">π</td>
<td class="cell 5B">π</td>
<td class="cell 5C">π</td>
<td class="cell 5D">π</td>
<td class="cell 5E">π</td>
<td class="cell 5F">π</td>
<td class="cell 5G">π</td>
<td class="cell 5H">π</td>
</tr>
<tr class="row">
<th>6</th>
<td class="cell 6A">π</td>
<td class="cell 6B">π</td>
<td class="cell 6C">π</td>
<td class="cell 6D">π</td>
<td class="cell 6E">π</td>
<td class="cell 6F">π</td>
<td class="cell 6G">π</td>
<td class="cell 6H">π</td>
</tr>
<tr class="row">
<th>7</th>
<td class="cell 7A">π</td>
<td class="cell 7B">π</td>
<td class="cell 7C">π</td>
<td class="cell 7D">π</td>
<td class="cell 7E">π</td>
<td class="cell 7F">π</td>
<td class="cell 7G">π</td>
<td class="cell 7H">π</td>
</tr>
<tr class="row">
<th>8</th>
<td class="cell 8A">π</td>
<td class="cell 8B">π</td>
<td class="cell 8C">π</td>
<td class="cell 8D">π</td>
<td class="cell 8E">π</td>
<td class="cell 8F">π</td>
<td class="cell 8G">π</td>
<td class="cell 8H">π</td>
</tr>
</table>
<p>
Ships Remaining: <span class="ships_rem"></span>
</p>
<p>
Shots Remaining: <span class="shots_rem"></span>
</p>
Row (1-8): <input type="text" name="name" value="" id="rowBox">
Column (A-H): <input type="text" name="name" value="" id="colBox">
<button type="button" name="shoot" id="fire">Fire</button>
<br>
<br>
<span id="winLoseText"></span>
<script type="text/javascript" src="js/battleship.js"> </script>
<script type="text/javascript" src="js/main.js">
</script>
</body>
</html>