-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (133 loc) · 5.49 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!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="reset.css" />
<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Barlow:wght@300&display=swap"
rel="stylesheet"
/>
<script src="script.js" defer></script>
</head>
<body>
<!-- Header -->
<header>
<p>xox</p>
<h1>TIC-TAC-TOE</h1>
<p>oxo</p>
</header>
<!-- Main -->
<main class="main-content-container">
<!-- game container -->
<section class="game-container">
<div class="winner-container">
<p id="winner"></p>
</div>
<div class="game">
<!-- aside for X -->
<section class="player-container">
<div class="rhombus"></div>
<p>Xs</p>
<div class="x" id="symbol-x"></div>
<!-- score for X -->
<div class="player-score-container">
<h2>Score:</h2>
<p id="X-score">0</p>
</div>
<div class="line-container">
<div class="line"></div>
<div class="line-dotted"></div>
<div class="line-dotted"></div>
<div class="line-dotted"></div>
<div class="line-dotted"></div>
</div>
<div class="rhombus"></div>
</section>
<!-- game grid -->
<section class="game-grid game-board">
<!-- game cells -->
<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>
</section>
<!-- aside for O -->
<section class="player-container">
<div class="rhombus"></div>
<p>Os</p>
<div class="o" id="symbol-o"></div>
<!-- score for O -->
<div class="player-score-container">
<h2>Score:</h2>
<p id="O-score">0</p>
</div>
<div class="line-container">
<div class="line"></div>
<div class="line-dotted"></div>
<div class="line-dotted"></div>
<div class="line-dotted"></div>
<div class="line-dotted"></div>
</div>
<div class="rhombus"></div>
</section>
</div>
<!-- start / restart button should change button label after game starts or ends -->
<div class="button-container">
<p>·</p>
<p>·</p>
<p>·</p>
<button class="game-button" id="gameButton">
START GAME
</button>
<p>·</p>
<p>·</p>
<p>·</p>
</div>
<!-- Radio buttons fro game mode -->
<div class="game-mode-selection">
<label>
<input
type="radio"
name="gameMode"
value="human"
checked
/>
Human vs. Human
</label>
<label>
<input type="radio" name="gameMode" value="computer" />
Human vs. Computer
</label>
</div>
<div class="difficulty-level-selection">
<label for="difficulty">Choose a difficulty:</label>
<select name="difficulty-levels" id="difficultyLevels">
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
</div>
<div class="rules-container">
<p>Choose game mode and difficulty level</p>
<p>Press 'Start Game' to begin the game :)</p>
<p>Xs make the first move.</p>
</div>
</section>
</main>
<!-- Footer -->
<footer>
<p>Developed by</p>
<a href="https://github.com/ExtF8" target="_blank"><p>ExtF8</p></a>
</footer>
</body>
</html>