forked from Ggoldenberg/html-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bataille-navale.html
186 lines (174 loc) · 4.94 KB
/
bataille-navale.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bataille navale</title>
<link rel="stylesheet" href="css/tables.css">
<link rel="stylesheet" href="css/bataile-navale.css">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<h1>Grille de Bataille Navale</h1>
<h2>Règle du jeu</h2>
<p>La bataille navale oppose deux joueurs. Chaque joueur dispose de deux grilles carrées de côté 10, dont les lignes sont numérotées de 1 à 10 et les colonnes de A à J, ainsi que d'une flotte composée de quelques bateaux d'une à cinq cases de long.</p>
<p>Au début du jeu, chaque joueur place ses bateaux sur sa grille, en s'assurant que deux bateaux ne sont pas adjacents. L'autre représente la zone adverse, où il cherchera à couler les bateaux de son adversaire.</p>
<h2>Listes des navires à placer</h2>
<ul>
<li>1 Porte Avions (5 cases)</li>
<li>1 Cuirassé (4 cases)</li>
<li>2 Croiseurs (3 cases)</li>
<li>3 Torpilleurs (2 cases)</li>
<li>3 Sous-marins (1 case)</li>
</ul>
<h2>La grille de jeu</h2>
<table >
<thead>
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
<th>6</th>
<th>7</th>
<th>8</th>
<th>9</th>
<th>10</th>
</tr>
</thead>
<tbody>
<tr>
<th>A</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>B</th>
<td></td>
<td style="background: green;"><strong>PA</strong></td>
<td style="background: green;"><strong>PA</strong></td>
<td style="background: green;"><strong>PA</strong></td>
<td style="background: green;"><strong>PA</strong></td>
<td style="background: green;"><strong>PA</strong></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>C</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>D</th>
<td></td>
<td></td>
<td></td>
<td style="background: greenyellow"><strong>CR</strong></td>
<td style="background: red;"><strong>H</strong></td>
<td style="background: greenyellow"><strong>CR</strong></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>E</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>F</th>
<td></td>
<td style="background: greenyellow"><strong>CR</strong></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>G</th>
<td></td>
<td style="background: greenyellow"><strong>CR</strong></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>H</th>
<td></td>
<td style="background: greenyellow"><strong>CR</strong></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>I</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>J</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>