-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (71 loc) · 2.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./src/style.css">
<link rel="shortcut icon" href="./src/imgs/xo.webp" type="image/x-icon">
<title>Tic-Tac-Toe</title>
</head>
<header>
<h1>Tic-Tac-Toe</h1>
<div class="players">
<span class="player active d-none"></span>
<span class="player d-none" ></span>
</div>
</header>
<body>
<div class="front">
<h2>Choose game style</h2>
<div class="choices">
<div id="player-one">
<h3>player one</h3>
<input type="text" id="player-one-name" placeholder="Choose a name">
<span data-choice="human" class="selected">Human</span>
<span data-choice="AI" class="disabled">AI</span>
</div>
<div id="player-two">
<h3>player two</h3>
<input type="text" id="player-two-name" placeholder="Choose a name">
<span data-choice="human" class="selected">Human</span>
<span data-choice="AI" class="disabled">AI</span>
</div>
</div>
<div id="note">AI mode will be added soon!</div>
<button id="start">Start game</button>
</div>
<div class="game-board d-none">
<div class="game-cell" data-position="0"></div>
<div class="game-cell" data-position="1"></div>
<div class="game-cell" data-position="2"></div>
<div class="game-cell" data-position="3"></div>
<div class="game-cell" data-position="4"></div>
<div class="game-cell" data-position="5"></div>
<div class="game-cell" data-position="6"></div>
<div class="game-cell" data-position="7"></div>
<div class="game-cell" data-position="8"></div>
<div id="win-line" class=""></div>
</div>
<div class="result-box d-none">
<span id="x">x</span>
<span id="result"></span>
<div class="btns">
<button id="replay">Replay</button>
<button id="quit">Go Home</button>
</div>
</div>
<footer>
<p>
Copyright ©
<script>
document.write(new Date().getFullYear())
</script>
<a href="https://github.com/AnisKehila" target="_blank">
Anis Kehila
</a>
</p>
</footer>
<script src="./src/main.js"></script>
</body>
</html>