-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (48 loc) · 1.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="./css/style.css" />
<link rel="icon" href="./assets/xo.jpg" type="image">
</head>
<body>
<main>
<!-- section contains headings for game name and game status, game board with 9 cells and restart button -->
<section class="container">
<h1 class="gameName">Tic Tac Toe</h1>
<div class="gameBoard">
<div id="cell-0" class="cell"></div>
<div id="cell-1" class="cell"></div>
<div id="cell-2" class="cell"></div>
<div id="cell-3" class="cell"></div>
<div id="cell-4" class="cell"></div>
<div id="cell-5" class="cell"></div>
<div id="cell-6" class="cell"></div>
<div id="cell-7" class="cell"></div>
<div id="cell-8" class="cell"></div>
</div>
<div class="content">
<!-- <p class="rounds">
<span>Rounds</span>
<span class="round">0</span>
</p> -->
<p class="player" ><span class="p">Player(x)</span><span id="userScore">0</span></p>
<p class = "computer"><span class ="c">Computer(o)</span><span id="computerScore">0</span></p>
</div>
<h2 class="gameStatus"></h2>
<button class="restartBtn" onclick="restartBoard()">Restart Game</button>
<div class="showImg">
<div id="imgResult"></div>
</div>
</section>
<!-- section ends -->
</main>
<script src="./javaScript/script.js"></script>
</body>
</html>