-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.html
59 lines (52 loc) · 1.99 KB
/
model.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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TicTacToe</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="images/icons/favicon.ico">
</head>
<body>
<header>
<h1>TicTacToe</h1>
</header>
<section class="game-container">
<div class="game-board">
<table>
<tbody>
<td id="place1" onclick="makeMove(1)"></td>
<td id="place2" onclick="makeMove(2)"></td>
<td id="place3" onclick="makeMove(3)"></td>
</tbody>
<tbody>
<td id="place4" onclick="makeMove(4)"></td>
<td id="place5" onclick="makeMove(5)"></td>
<td id="place6" onclick="makeMove(6)"></td>
</tbody>
<tbody>
<td id="place7" onclick="makeMove(7)"></td>
<td id="place8" onclick="makeMove(8)"></td>
<td id="place9" onclick="makeMove(9)"></td>
</tbody>
</table>
</div>
<div class="game-info">
<h2>Game status</h2>
<div id="gameStatus"><p>Press 'Create Match' to play the game!</p></div>
<div id="roundCount">
<p style="display: block; margin-bottom: 5px;" id="roundnumber">Round: </p>
<p id="xcount">[X]: 0</p> <p id="ocount">[O]: 0</p>
<p id="drawcount">[Draw]: 0</p>
</div>
<input type="button" value="Create Match" onclick="createMatch()">
<input type="button" value="Restart Match" onclick="restartMatch()">
<input type="button" value="Restart round" onclick="restartRound()">
</div>
</section>
<footer>
<h1>Made by EltonC06</h1>
</footer>
<script src="script.js"></script>
</body>
</html>