-
Notifications
You must be signed in to change notification settings - Fork 0
/
game_page.html
48 lines (46 loc) · 1.86 KB
/
game_page.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
<!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="game_page_style.css" />
<script src="game_page.js" async defer></script>
<title>Tic tac toe</title>
</head>
<body>
<div class="main-container">
<button class="button new-game-button">New game</button>
<a href="index.html" class="button reset-button">Change players' names</a>
<div class="player-container" id="player_1">
<div class="player-container__player-turn">Your turn! You play X</div>
<div class="player-container__player-name">Player 1</div>
<div class="player-container__player-score-box">
<p>Won rounds:</p>
<p class="player-container__score" id="score_1">0</p>
</div>
</div>
<div class="player-container" id="player_2">
<div class="player-container__player-turn" style="opacity: 0">
Your turn! You play O
</div>
<div class="player-container__player-name">Player 2</div>
<div class="player-container__player-score-box">
<p>Won rounds:</p>
<p class="player-container__score" id="score_2">0</p>
</div>
</div>
<div class="game-container">
<div class="game-container__box" id="0"></div>
<div class="game-container__box" id="1"></div>
<div class="game-container__box" id="2"></div>
<div class="game-container__box" id="3"></div>
<div class="game-container__box" id="4"></div>
<div class="game-container__box" id="5"></div>
<div class="game-container__box" id="6"></div>
<div class="game-container__box" id="7"></div>
<div class="game-container__box" id="8"></div>
</div>
</div>
</body>
</html>