-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtictactoe.html
More file actions
59 lines (59 loc) · 1.53 KB
/
tictactoe.html
File metadata and controls
59 lines (59 loc) · 1.53 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
58
59
<!DOCTYPE html>
<html>
<head>
<title>TIC TAC TOE</title>
<link rel="stylesheet" href="tictactoe.css">
</head>
<body>
<main>
<h1>Tic Tac Toe</h1>
<br/>
<table class="board">
<tr>
<td>
<div id="0" class="square left top"></div>
</td>
<td>
<div id="1" class="square top v-middle"></div>
</td>
<td>
<div id="2" class="square right top"></div>
</td>
</tr>
<tr>
<td>
<div id="3" class="square left h-middle"></div>
</td>
<td>
<div id="4" class="square v-middle h-middle"></div>
</td>
<td>
<div id="5" class="square right h-middle"></div>
</td>
</tr>
<tr>
<td>
<div id="6" class="square left bottom"></div>
</td>
<td>
<div id="7" class="square bottom v-middle"></div>
</td>
<td>
<div id="8" class="square right bottom"></div>
</td>
</tr>
</table>
<br>
<div id="messageBox"><strong>Pick a square!</strong></div>
<br>
<div class="controls">
<button class="button" onclick="resetGame()">Play Again</button>;
<select id="difficulty">
<option value="moron" selected >Easy</option>
<option value="genius">Genius</option>
</select>
</div>
</main>
<script src="tictactoe.js"></script>
</body>
</html>