generated from BurlingtonCodeAcademy/tic-tac-toe-www
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpvp.html
83 lines (70 loc) · 2.42 KB
/
pvp.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
<!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" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="/styles/style.css" />
<title>Tic Tac Toe PvP</title>
</head>
<body>
<!-- main container -->
<div id="game-box">
<!-- title -->
<h2>Tic <span class="bold">Tac</span> Toe</h2>
<div id="textContainer">
<!-- game instructions -->
<h3 id="describe">
The goal of the game of Tic Tac Toe is to get three boxes in a row.<br>
You and a player will alternate turns.
</h3>
<!-- score board -->
<div id="score">
<!-- Player 1 name and score -->
<h3>
<span id="p1Name">Player One</span><br /><span id="playerOneScore">0</span>
</h3>
<!-- Player 2 name and score -->
<h3>
<span id="p2Name">Player Two</span> <br /><span id="playerTwoScore">0</span>
</h3>
</div>
<!-- timer -->
<h3><span id="minutes">00</span>:<span id="seconds">00</span></h3>
</div>
<!-- board container -->
<div id="board">
<div id="cell-0" class="cell"></div>
<div id="cell-1" class="cell"></div>
<div id="cell-2" class="cell"></div>
<div id="cell-3" class="cell"></div>
<div id="cell-4" class="cell"></div>
<div id="cell-5" class="cell"></div>
<div id="cell-6" class="cell"></div>
<div id="cell-7" class="cell"></div>
<div id="cell-8" class="cell"></div>
</div>
<!-- game controls -->
<div id="game-control" class="status">
<div>
<!-- board reset remove the moves -->
<button id="reset" type="button" disabled="true">Reset Board</button>
<!-- start the game and timer -->
<button id="start" type="button">
<span class="bold">Start Game</span>
</button>
<!-- resets the board and score and timer -->
<button id="restartGame" type="button">Restart Game</button>
</div>
<!-- redirects back to home page -->
<div class="status">
<button id="goHome">Home</button>
</div>
</div>
</div>
<script src="/scripts/pvpScript.js"></script>
</body>
</html>