forked from rgmagadan/3enraya
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (52 loc) · 1.87 KB
/
index.html
File metadata and controls
57 lines (52 loc) · 1.87 KB
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tres en raya</title>
<link rel="stylesheet" href="css/ejer5.css">
<script src="scripts/jugador.js"></script>
<script src="scripts/maquina.js"></script>
<script src="scripts/partida.js"></script>
<script src="scripts/tablero.js"></script>
<script src="scripts/ejer5.js"></script>
</head>
<body>
<h1>Tres en raya</h1>
<label for="X">Jugador X:</label>
<select id="X">
<option value="humano">Humano</option>
<option value="maquina">Máquina</option>
</select>
<br>
<label for="O">Jugador O:</label>
<select id="O">
<option value="humano">Humano</option>
<option value="maquina">Máquina</option>
</select>
<br>
<button id="empezar">Empezar partida</button>
<table id="tablero" aria-roledescription="Activa el modo foco en la tabla para tener una mejor experiencia. Luego muévete con las flechas por el tablero.">
<caption id="marcador" aria-live="polite"></caption>
<tr>
<td id="a1" tabindex="1"></td>
<td id="b1" tabindex="2"></td>
<td id="c1" tabindex="3"></td>
</tr>
<tr>
<td id="a2" tabindex="4"></td>
<td id="b2" tabindex="5"></td>
<td id="c2" tabindex="6"></td>
</tr>
<tr>
<td id="a3" tabindex="7"></td>
<td id="b3" tabindex="8"></td>
<td id="c3" tabindex="9"></td>
</tr>
</table>
<audio id="movimiento" src="./audio/movimiento.wav" preload="auto"></audio>
<audio id="victoria" src="./audio/victoria.wav" preload="auto"></audio>
<audio id="empate" src="./audio/empate.wav" preload="auto"></audio>
</body>
</html>