-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (52 loc) · 2.02 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
<!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="icon" href="./img/icon.png">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="./CSS/style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Courgette&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>tic tac toe</h1>
<div class="players-box" id="players-box">
<p class="player">Player 1 = <span id="player-1">0</span></p>
<p class="player">Player 2 = <span id="player-2">0</span></p>
</div>
<div class="stage" id="stage">
<div class="row">
<div id="0" class="square"></div>
<div id="1" class="square"></div>
<div id="2" class="square"></div>
</div>
<div class="row">
<div id="3" class="square"></div>
<div id="4" class="square"></div>
<div id="5" class="square"></div>
</div>
<div class="row">
<div id="6" class="square"></div>
<div id="7" class="square"></div>
<div id="8" class="square"></div>
</div>
</div>
<div id="choicePlayer" class="choicePlayer">
<div class="btn-box">
<button onclick="player(0)">Player vs Player</button>
<button onclick="player(1)">Player vs Computer</button>
<button onclick="player(2)">Computer vs Computer</button>
</div>
</div>
<div id="playAgain" class="btn-box">
<button onclick="playAgain()">Play Again</button>
</div>
</div>
<script src="./Javascript/game.js"></script>
<script src="./Javascript/computer.js"></script>
<script src="./Javascript/interface.js"></script>
</body>
</html>