forked from Evgenii-Bazhaov/Hacktoberfest2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (63 loc) · 2.25 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Include CSS file -->
<link rel="stylesheet" type="text/css" href="tictactoe.css">
<!-- Include JavaScript file -->
<script src="tictactoe.js"></script>
</head>
<body class="bg">
<div id="main">
<h1>TIC TAC TOE Game</h1>
<p id="ins">
Just Tap on box, Game starts !!!
<br><br>First Player starts is
<b>Player X </b>And Second Player is
<b>Player 0</b>
</p>
<br><br>
<div class = "ui">
<div class="row">
<input type="text" id= "b1"
class="cell" onclick="func_3(); func();"
readonly>
<input type="text" id= "b2"
class="cell" onclick="func_4(); func();"
readonly>
<input type="text" id= "b3" class="cell"
onclick="func_5(); func();"
readonly>
</div>
<div class="row">
<input type="text" id= "b4"
class="cell" onclick="func_6(); func();"
readonly>
<input type="text" id= "b5"
class="cell" onclick="func_7(); func();"
readonly>
<input type="text" id= "b6"
class="cell" onclick="func_8(); func();"
readonly>
</div>
<div class="row">
<input type="text" id= "b7"
class="cell" onclick="func_9(); func();"
readonly>
<input type="text" id= "b8"
class="cell" onclick="func_10();func();"
readonly>
<input type="text" id= "b9"
class="cell" onclick="func_11();func();"
readonly>
</div>
</div>
<br><br><br>
<button id="btnClr" onclick="func_2()">
CLEAR
</button>
<br><br>
<p id="print"></p>
</div>
</body>
</html>