-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (45 loc) · 1.82 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
<!DOCTYPE html>
<html>
<head>
<title>tic-tac-toe</title>
<link rel="stylesheet" href="./game_style.css">
</head>
<body>
<div id="title">Tic Tac Toe Game</div>
<div class="outer">
<div class="middle">
<div id="turn">
<div class="x turn_on" id="x_turn">x's turn</div>
<div class="o turn_off" id="o_turn">o's turn</div>
</div>
<div class="inner">
<div class="row1">
<button class="x" id='top-left' position="1"></button>
<button class="x" id='top' position="2"></button>
<button class="x" id='top-right' position="3"></button>
</div>
<div class="row2">
<button class="x" id='left' position="4"></button>
<button class="x" id='center' position="5"></button>
<button class="x" id='right' position="6"></button>
</div>
<div class="row3">
<button class="x" id='bottom-left' position="7"></button>
<button class="x" id='bottom' position="8"></button>
<button class="x" id='bottom-right' position="9"></button>
</div>
</div>
</div>
</div>
<div id="game_over">
<div id="result">X WINS!</div>
<div id="restart_button">
<div id="helper">
<img src="./reload.ico" alt="icon">
</div>
<button></button>
</div>
</div>
<script src="./back_end.js"></script>
</body>
</html>