-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (70 loc) · 2.92 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic-Tac-Toe</title>
<link rel = "stylesheet" href = "css/style.css">
<script src = "js/script.js"></script>
</head>
<body>
<div class = "container">
<h1>Tic-Tac-Toe</h1>
<hr>
<p class = "turn1">Player1(X) </p>
<p class = "turn1">Draw </p>
<p class = "turn1">Player2(O) </p>
<hr class= "line">
<p id = "player1" class = "turn3"></p>
<p id = "draw" class = "turn3"></p>
<p id = "player2" class = "turn3"></p>
<hr class = "line">
<p class = "turn2">Player</p>
<p id = "playerturn" class = "turn2">x</p>
<p class = "turn2">Turn</p>
<hr class = "line">
<div class = "board">
<table>
<div class = "row">
<tr id = "frow">
<td class = "col">
<input type = "text" class = "cell" id = "00" maxlength = "1" onclick= "fill(this)" >
</td>
<td class = "col">
<input type = "text" id = "01" class = "cell" maxlength = "1" onclick= "fill(this)" >
</td>
<td class = "col">
<input type = "text" id = "02" class = "cell" maxlength = "1" onclick= "fill(this)">
</td>
</tr>
</div>
<div class = "row">
<tr id = "srow">
<td class = "col">
<input type = "text" id = "10" class = "cell" maxlength = "1" onclick= "fill(this)" >
</td>
<td class = "col">
<input type = "text" id = "11" class = "cell" maxlength = "1" onclick= "fill(this)">
</td>
<td class = "col">
<input type = "text" id = "12" class = "cell" maxlength = "1" onclick= "fill(this)" >
</td>
</tr>
</div>
<div class = "row">
<tr id = "trow">
<td class = "col">
<input type = "text" id = "20" class = "cell" maxlength = "1" onclick= "fill(this)" >
</td>
<td class = "col">
<input type = "text" id = "21" class = "cell" maxlength = "1" onclick= "fill(this)" >
</td>
<td class = "col">
<input type = "text" id = "22" class = "cell" maxlength = "1" onclick= "fill(this)" >
</td>
</tr>
</div>
</table>
</div>
</div>
</body>
</html>