-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (84 loc) · 2.81 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="UTF-8" />
<title>Tic-Tac-Toe</title>
<!-- Responsive -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./css/main.css" type="text/css" />
</head>
<body>
<h1>Tic-Tac-Toe</h1>
<!-- Controls and Settings -->
<div id="controls">
<div id="difficulties">
<label>X difficulty:
<select id="x-difficulty" accesskey="x">
<option value="0" selected="selected">Human</option>
<option value="1">Easy</option>
<option value="2">Reasonable</option>
<option value="3">Impossible</option>
</select>
</label>
<label>O difficulty:
<select id="o-difficulty" accesskey="o">
<option value="0">Human</option>
<option value="1">Easy</option>
<option value="2" selected="selected">Reasonable</option>
<option value="3">Impossible</option>
</select>
</label>
<label><input type="checkbox" id="cpu-delay" checked="checked" />
Delay computer moves
</label>
</div>
<button id="new-game" accesskey="n">New Game</button>
</div>
<hr />
<!-- Playing board -->
<table id="board">
<caption>X's turn</caption>
<tbody>
<tr>
<td id="cell0" class="open">
<button id="choose0" accesskey="1"></button>
</td>
<td id="cell1" class="open">
<button id="choose1" accesskey="2"></button>
</td>
<td id="cell2" class="open">
<button id="choose2" accesskey="3"></button>
</td>
</tr>
<tr>
<td id="cell3" class="open">
<button id="choose3" accesskey="4"></button>
</td>
<td id="cell4" class="open">
<button id="choose4" accesskey="5"></button>
</td>
<td id="cell5" class="open">
<button id="choose5" accesskey="6"></button>
</td>
</tr>
<tr>
<td id="cell6" class="open">
<button id="choose6" accesskey="7"></button>
</td>
<td id="cell7" class="open">
<button id="choose7" accesskey="8"></button>
</td>
<td id="cell8" class="open">
<button id="choose8" accesskey="9"></button>
</td>
</tr>
</tbody>
</table>
<footer>
<hr />
©2015, <a href="https://tpenguinltg.wordpress.com/">tPenguinLTG</a>. View the source on <a href="https://github.com/tpenguinltg/tic-tac-toe">GitHub</a>.
</footer>
<!-- Game logic and setup -->
<script type="text/javascript" src="./js/game.js"></script>
</body>
</html>