-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathticTacToe.html
More file actions
53 lines (47 loc) · 1.9 KB
/
ticTacToe.html
File metadata and controls
53 lines (47 loc) · 1.9 KB
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
<!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>
<link rel="stylesheet" href="css/ticTacToe.css">
</head>
<body>
<div id="gameContainer">
<div id="gameInfo">
<h2>Tic Tac Toe</h2>
<p class="description">
Tic-Tac-Toe is the classic strategy game played on a 3x3 grid.
Two players take turns placing X and O on the board. The objective
is to place three of your symbols in a row horizontally, vertically,
or diagonally before your opponent does.
</p>
</div>
<!-- Turn Indicator -->
<p id="status">Player X's Turn</p>
<!-- Game Board -->
<div id="board">
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
</div>
<!-- Restart Button -->
<button id="restartBtn">Restart Game</button>
<!-- Scoreboard -->
<div id="scoreboard">
<p>X Wins: <span id="xWins">0</span></p>
<p>O Wins: <span id="oWins">0</span></p>
</div>
<!-- Navigation -->
<a href="mainPage.html">Back to Game Menu</a>
</div>
<script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>
<script src="js/ticTacToe.js"></script>
</body>
</html>