-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (82 loc) · 3.43 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
<!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="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous">
<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=Dela+Gothic+One&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Tic Tac Toe</title>
</head>
<body>
<main>
<!-- made for the music to play -->
<div class="starting-button-div active" id="startingButtonDiv">
<button id="startingButton" class="starting-button">Start Game</button>
<button id="howToPlay" class="how-to-play">How to play</button>
</div>
<div id="instructions" class="pop-up">
<ol>
<li>The game is played on a grid that's 3 squares by 3 squares.</li>
<li>You are either the play icon (Green) or the Stop icon (red). Players take turns putting their marks in empty squares.</li>
<li>The first player to get 3 of her marks in a row (up, down, across, or diagonally) is the winner. The winners' score will be incremented by 1</li>
<li>When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a tie.</li>
<li>You win by having 5 points</li>
</ol>
<button id="goBack">Go back</button>
</div>
<div id="playerOneName" class="pop-up">
<div class="player-form">
<label for="playerOneNameInput">Player One Name</label>
<span class="small">(If you do not enter anything your name will default to "Green")</span>
<input type="text" id="playerOneNameInput">
</div>
<button id="playerOneButton">Ok</button>
</div>
<div id="playerTwoName" class="pop-up">
<div class="player-form">
<label for="playerTwoNameInput">Player Two Name</label>
<p class="small">(If you do not enter anything your name will default to "Red")</p>
<input type="text" id="playerTwoNameInput">
</div>
<button id="playerTwoButton">Ok</button>
</div>
<div class="game-board" id="gameBoard">
<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>
</div>
<div class="score-board" id="scoreBoard">
<h1>Neon Tac Toe</h1>
<div class="player-score-div">
<p class="player" id="playerOneNameParagraph">Green</p>
<span>Score:</span>
<span id="playerOneScore">0</span>
</div>
<div class="player-score-div">
<p class="player" id="playerTwoNameParagraph">Red</p>
<span>Score:</span>
<span id="playerTwoScore">0</span>
</div>
<p class="current-turn" id="currentTurn"></p>
</div>
<div class="pop-up" id="outcomePopUp">
<button id="restart" class="restart">Restart</button>
<p id="alertWin" class="alert-win"></p>
</div>
</main>
<audio id="bgm">
<source src="assets/bgm.mp4" type="audio/mpeg">
</audio>
<script src="app.js"></script>
</body>
</html>