-
Notifications
You must be signed in to change notification settings - Fork 0
/
twoPlayer.html
95 lines (93 loc) · 4.03 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<html>
<head>
<title> Tic Tac Toe </title>
<link rel="stylesheet" href="./css/twoPlayer.css">
</head>
<body>
<div class="container">
<div class="left">
<div class="user1">
<div class="pic">
<img src="./images/person.png">
</div>
<div class="info">
<p class="player">Player 1</p>
<p class="playerName"></p>
</div>
</div>
</div>
<div class="mid">
<div class="launchForm">
<div class="head">
<h3>Tic Tac Toe Game</h3>
</div>
<div>
<h4 class="twoPlayerHead">
Two Player Game
</h4>
</div>
<div class="form">
<div class="formElements">
<label for="p1Name">Player 1 Name</label>
<input type="text" id = "p1Name">
</div>
<div class="formElements">
<label for="p2Name">Player 2 Name</label>
<input type="text" id = "p2Name">
</div>
<div class="button">
<input type="submit" name="submitButton" id="submitButton">
</div>
<a href="index.html" class="backBase">Back to base</a>
</div>
</div>
<div class="board hideBoard">
<div class="head">
<h3>Tic Tac Toe Game</h3>
</div>
<div class="turn">
<div><h1 id="playerLabel">It's Player 1's turn</h1></div>
</div>
<h3 class="winMessage"></h3>
<div class="container-out">
<div class="container-in">
<div class="table-container">
<table>
<tr>
<td><div class="box" value="2"></div></td>
<td><div class="box" value="7"></div></td>
<td><div class="box" value="6"></div></td>
</tr>
<tr>
<td><div class="box" value="9"></div></td>
<td><div class="box" value="5"></div></td>
<td><div class="box" value="1"></div></td>
</tr>
<tr>
<td><div class="box" value="4"></div></td>
<td><div class="box" value="3"></div></td>
<td><div class="box" value="8"></div></td>
</tr>
</table>
<button id="reset">Reset</button>
<button id="backToMenu">Go Back</button>
</div>
</div>
</div>
</div>
</div>
<div class="right">
<div class="user1">
<div class="pic">
<img src="./images/person.png">
</div>
<div class="info">
<p class="player">Player 2</p>
<p class="playerName"></p>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="./js/twoPlayer.js"></script>
</body>
</html>