-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (44 loc) · 1.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="/images/giphy.gif" style="filter:opacity(50%);" type="image/x-icon">
<title>Tic tac toe|Home</title>
</head>
<body style="background-image: url(/images/background.gif); " >
<h1>Tic Tac Toe </h1>
<div class="select">
<hr>
<p>Select which you want to be?
<select onchange="PL=this.value">
<option value= 1>player O</option>
<option value= -1>player X</option>
</select></p>
</div>
<div class="select">
<hr>
<p> Play with:
<select onchange="AI=this.value">
<option value="false">Human</option>
<option value="true">Computer</option>
</select></p>
<hr></div>
<div class="opt">
<div class="game-container">
<div id="c00" class="cell"></div>
<div id="c01" class="cell"></div>
<div id="c02" class="cell"></div>
<div id="c10" class="cell"></div>
<div id="c11" class="cell"></div>
<div id="c12" class="cell"></div>
<div id="c20" class="cell"></div>
<div id="c21" class="cell"></div>
<div id="c22" class="cell"></div>
</div>
</div>
<button class="restart" onclick="restart()">Restart</button><hr>
<script src="main.js"></script>
</body>
</html>