-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 1.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic-Tac-Toe</title>
<!-- linking css file -->
<link rel="stylesheet" href="style.css">
<!-- linking javascript file -->
<script src="script.js"></script>
</head>
<body id="tank">
<div id="main">
<h1 id="tic">-TIC-TAC-TOE-</h1>
<p id="ins">
To start the game simply tap on the box<br>First player starts as <b>PLayer 'X'</b><br> Second player as <b>Player 'O'</b>
</p>
<br><br>
<div id="interact">
<div id="row">
<input type="text" id="b1" class="cell" onclick="myfunc3(); myfunc();" readonly>
<input type="text" id="b2" class="cell" onclick="myfunc4(); myfunc();" readonly>
<input type="text" id="b3" class="cell" onclick="myfunc5(); myfunc();" readonly>
</div>
<div id="row">
<input type="text" id="b4" class="cell" onclick="myfunc6(); myfunc();" readonly>
<input type="text" id="b5" class="cell" onclick="myfunc7(); myfunc();" readonly>
<input type="text" id="b6" class="cell" onclick="myfunc8(); myfunc();" readonly>
</div>
<div id="row">
<input type="text" id="b7" class="cell" onclick="myfunc9(); myfunc();" readonly>
<input type="text" id="b8" class="cell" onclick="myfunc10(); myfunc();" readonly>
<input type="text" id="b9" class="cell" onclick="myfunc11(); myfunc();" readonly>
</div>
</div>
<br><br><br>
<button id="but" onclick="myfunc2();">
Reset</button>
<br><br>
<p id="Print"></p>
</div>
</body>
</html>