-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (48 loc) · 1.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<title>Tic-Tac-Toe</title>
<link href="icons/tic-tac-toe.png" rel="icon" type="image/icon type">
<link href="main.css" rel="stylesheet" type="text/css">
<script src="game.js"></script>
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" rel="stylesheet">
</head>
<body>
<div id="main">
<div>
<h2>Tic-Tac-Toe</h2>
</div>
<div class="mt-4">
Start by clicking a box!
</div>
<div class="bg-dark" id="grid-container">
<div class="grid-cell fs-1" id="cell1" onclick="play(1)"></div>
<div class="grid-cell fs-1" id="cell2" onclick="play(2)"></div>
<div class="grid-cell fs-1" id="cell3" onclick="play(3)"></div>
<div class="grid-cell fs-1" id="cell4" onclick="play(4)"></div>
<div class="grid-cell fs-1" id="cell5" onclick="play(5)"></div>
<div class="grid-cell fs-1" id="cell6" onclick="play(6)"></div>
<div class="grid-cell fs-1" id="cell7" onclick="play(7)"></div>
<div class="grid-cell fs-1" id="cell8" onclick="play(8)"></div>
<div class="grid-cell fs-1" id="cell9" onclick="play(9)"></div>
</div>
<div>
<span id="player-turn">Player 1 Start!</span>
</div>
<div>
<span class="ts-2" id="winner"></span>
</div>
<div class="mt-4">
<button class="btn btn-light" onclick="reset()">Reset</button>
</div>
<div>
<br> <br> <a class="link-underline link-underline-opacity-0"
href="https://www.flaticon.com/free-icons/tic-tac-toe"
title="tic tac toe icons">Tic tac toe icons created by Tanah Basah - Flaticon</a>
</div>
</div>
</body>
</html>