/
game_2.html
49 lines (48 loc) · 2.01 KB
/
game_2.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
<!--HTML-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF=8">
<meta name="description" content="Awesome Tic Tac Toe game">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Pacifico&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Modak&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhai|Permanent+Marker&display=swap" rel="stylesheet">
<script src="main.js"></script>
<script>oneplayermode();</script>
<title>Tic-Tac-Toe Game</title>
</head>
<body>
<header>
<div>
<a href="index.html">
<h1 id="heading" style="font-size:70px; color: red; text-align:center;">Tic Tac Toe</h1>
</a>
</div>
</header>
<main>
<div class="game-board">
<div id="row-1">
<div onclick="move(this);" id="1"></div>
<div onclick="move(this);" id="2"></div>
<div onclick="move(this);" id="3"></div>
</div>
<div id="row-2">
<div onclick="move(this);" id="4"></div>
<div onclick="move(this);" id="5"></div>
<div onclick="move(this);" id="6"></div>
</div>
<div id="row-3">
<div onclick="move(this);" id="7"></div>
<div onclick="move(this);" id="8"></div>
<div onclick="move(this);" id="9"></div>
</div>
</div>
<div>
<button class="button" type="button" onclick="reload();">Play Again</button>
<text> </text>
<text class="currentgame" id="playerturn"><script>firstturn();</script></text>
</div>
</main>
</body>
</html>