-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (79 loc) · 3.29 KB
/
index.html
File metadata and controls
81 lines (79 loc) · 3.29 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="A simple, Minimal Tic Tac Toe Game with AI Player as well.">
<meta itemprop="name" content="Minimal Tic Tac Toe">
<meta itemprop="description" content="A simple, Minimal Tic Tac Toe Game with AI Player as well.">
<meta itemprop="image" content="https://raw.githubusercontent.com/LinuxGuy312/cdn/refs/heads/main/ttt-banner.webp">
<meta proprety="og:site_name" content="Minimal Tic Tac Toe">
<meta proprety="og:title" content="Minimal Tic Tac Toe">
<meta property="og:type" content="website">
<meta property="og:image" content="https://raw.githubusercontent.com/LinuxGuy312/cdn/refs/heads/main/ttt-banner.webp">
<meta property="og:description" content="A simple, Minimal Tic Tac Toe Game with AI Player as well.">
<title>Minimal Tic Tac Toe</title>
<link rel="icon" type="image/x-icon" href="https://raw.githubusercontent.com/LinuxGuy312/cdn/main/ttt-favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="preferences">
<div class="hamburger" id="hamburger">
<span></span>
<span></span>
<span></span>
</div>
<div class="preferences-menu" id="preferences-menu">
<div class="toggle-container">
<span>Light Mode: </span>
<label class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider"></span>
</label>
</div>
<div class="ai-difficulty">
<span>Difficulty: </span>
<select id="ai-difficulty">
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
</div>
</div>
</div>
<div class="container">
<h1>Tic Tac Toe</h1>
<div class="status" id="status">Player X's turn</div>
<div class="game-board" id="board">
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
</div>
<button id="reset">Reset Game</button>
<button id="ai-toggle-button">Play with AI</button>
</div>
<!-- Popup for Win/Draw -->
<div class="popup" id="popup">
<div class="popup-content">
<span id="popup-message"></span>
<button id="popup-close">Close</button>
</div>
</div>
<svg class="symbols">
<symbol id="x-icon" viewBox="0 0 24 24">
<path d="M18 6L6 18M6 6l12 12" stroke-linecap="round"/>
</symbol>
<symbol id="o-icon" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="8" fill="none"/>
</symbol>
</svg>
<script src="script.js"></script>
</body>
</html>