-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (43 loc) · 1.05 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
<html>
<head>
<style>
body{
margin:auto;
width:350px;
}
h1 {
border-bottom:5px solid black;
}
.square{
font-size:40pt;
height:80px;
width:80px;
text-align:center;
}
</style>
</head>
<body onload="game();">
<h1>Tic Tac Toe game</h1>
<h2 id="turn">The game starts with X</h2>
<table class="table" border="1">
<tr>
<td class="square" id="s1" onclick="text(this)"></td>
<td class="square" id="s2" onclick="text(this)"></td>
<td class="square" id="s3"onclick="text(this)"></td>
</tr>
<tr>
<td class="square" id="s4"onclick="text(this)"></td>
<td class="square" id="s5"onclick="text(this)"></td>
<td class="square" id="s6"onclick="text(this)"></td>
</tr>
<tr>
<td class="square" id="s7"onclick="text(this)"></td>
<td class="square" id="s8"onclick="text(this)"></td>
<td class="square" id="s9"onclick="text(this)"></td>
</tr>
</table>
<button onclick="restart()">restart</button>
<script src="tic.js">
</script>
</body>
</html>