-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTwoPlayer.html
80 lines (69 loc) · 2.47 KB
/
TwoPlayer.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
<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">
<title>Tic Tac Toe</title>
<link href="style.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Pangolin&display=swap" rel="stylesheet">
</head>
<body>
<header>
<p style="font-size: 30px;">Tic Tac Toe Game<br>
Have Fun 😀
</p>
<img src="Images/download.png" alt="game-icon" style="width: 50px;">
</header>
<div id="score-board">
<div>Player 1 Score<div id="player1-score">0</div></div>
<div>Player 2 Score<div id="player2-score">0</div></div>
</div>
<!-- <div>
<span>Player 1's Score</span>
<span>Player 2's Score</span>
</div> -->
<div id="result" style="font-size: 20px;"></div>
<div id="result-icon"><img src="Images/emoji_emotions_black_24dp.svg" alt="result-icon" style="width: 50px;"></div>
<div id="turn" style="font-size: 20px;"></div>
<!--Two Player Game Page-->
<div id="Two-player-game" class="page">
<div>
<p>
Player1: Would you like to be X or O?
</p>
</div>
<button class="btns btnxo2">X</button>
<button class="btns btnxo2">O</button>
<div>
<a href="index.html"><button class="btns">
<img src="Images/arrow_back_black_24dp.svg" alt="arrow-back" class="back-icon">
Back
</button></a>
</div>
</div>
<!--Main Game Board-->
<div class="page" id="table">
<table>
<tr>
<td class="cell" id="0"></td>
<td class="cell" id="1"></td>
<td class="cell" id="2"></td>
</tr>
<tr>
<td class="cell" id="3"></td>
<td class="cell" id="4"></td>
<td class="cell" id="5"></td>
</tr>
<tr>
<td class="cell" id="6"></td>
<td class="cell" id="7"></td>
<td class="cell" id="8"></td>
</tr>
</table>
<button class="btns" id="reset">Reset</button>
<a href="index.html"> <button class="btns" >Reset All</button></a>
</div>
<script src="TwoPlayer.js" type="text/javascript"></script>
</body>
</html>