-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
72 lines (63 loc) · 2.71 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
68
69
70
71
72
<!--https://github.com/AmirMohammadPX/Tic-Tac-Toe-Game-->
<!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 Game</title>
<link rel="icon" href="favicon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="notsupport">
<p>Your screen size is not supported</p>
</div>
<div id="container" class="container fade-in">
<h1>Tic Tac Toe Game</h1>
<!-- Game mode selection -->
<div id="modeSelection">
<div class="difficulty-section">
<h2>Single Player</h2>
<div class="difficulty-buttons">
<button class="btn" id="easy">Easy</button>
<button class="btn" id="medium">Medium</button>
<button class="btn" id="impossible">Impossible</button>
</div>
</div>
<div class="multiplayer-section">
<h2>Two Players</h2>
<div class="difficulty-buttons">
<button class="btn" id="twoPlayers">Two Players</button>
</div>
</div>
</div>
<!-- Game board (initially hidden) -->
<div id="gameBoard" style="display: none;">
<!-- Scoreboard -->
<div id="scoreboard" class="scoreboard">
<div id="playerXScore" class="score" dir="ltr">
<i class="bi bi-person-fill"></i> <span contentEditable id="playerXName">Player</span>(X):<span
id="scoreX">0</span>
</div>
<span id="equal" class="opacity-0">=</span>
<div id="playerOScore" class="score" dir="ltr">
<i id="playerO-icon" class="bi bi-person-fill"></i> <span contentEditable
id="playerOName">Player</span>(O):<span id="scoreO">0</span>
</div>
</div>
<!-- Game status display -->
<div id="status"></div>
<!-- Game board grid -->
<div class="board">
<!-- Cells will be dynamically added here -->
</div>
<!-- Game control buttons -->
<button id="reset" class="btn"><i class="bi bi-arrow-repeat"></i> Reset Game</button>
<button id="changeMode" class="btn"><i class="bi bi-plus-lg"></i> New Game</button>
</div>
<a href="https://github.com/AmirMohammadPX" target="_blank">Github/AmirMohammadPX</a>
</div>
<script src="js/script.js"></script>
</body>
</html>