-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
125 lines (118 loc) · 3.63 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:700">
<title>Tic-Tac-Toe-Game</title>
</head>
<body>
<h1>Tic-Tac-Toe game</h1>
<div id="container">
<div id="sidebar_wrap">
<div>
Human VS AI
</div>
<div class="field">
<label>Depth</label>
<button id="button" class="depth1">1</button>
<button id="button" class="depth2">2</button>
<button id="button" class="depth3">3</button>
<button id="button" class="depth4">4</button>
<button id="button" class="depth5">Unlimited</button>
</div>
<div id="depthoutput">
<p>
Level max
</p>
</div>
<div class="field">
<label>Starting Player</label>
<button id="button" class="ai">AI</button>
<button id="button" class="human">HUMAN</button>
</div>
<div id="whostartsfirst">
<p>
Choose the first player
</p>
</div>
<div id="button-row">
<button id="button" class="new-game">New Game</button>
</div>
<div>
<a href="https://github.com/prasenjit07/Tic-Tac-Toe-Game.git" >Checkout the source code</a>
</div>
</div>
<div id="board_wrap">
<div class="gif" id="gif-lose">
<div class="gif-content">
<div class="gif-header">
<span class="close">×</span>
<h2>Computer Wins!</h2>
</div>
<div class="gif-body">
<div>
<img src="images/computer_wins.gif" alt="Computer Wins"/>
</div>
<div class="gif-footer"></div>
</div>
</div>
</div>
<div class="gif" id="gif-draw">
<div class="gif-content">
<div class="gif-header">
<span class="close">×</span>
<h2>Draw!</h2>
</div>
<div class="gif-body">
<div>
<img src="images/player_draws.gif" alt="Draw game"/>
</div>
</div>
<div class="gif-footer"></div>
</div>
</div>
<div class="gif" id="gif-win">
<div class="gif-content">
<div class="gif-header">
<span class="close">×</span>
<h2>You Won!</h2>
</div>
<div class="gif-body">
<div>
<img src="images/Youwon.gif" alt="win game"/>
</div>
</div>
<div class="gif-footer"></div>
</div>
</div>
<div id="container">
<div id="gameboard">
<table id="grid">
<tr>
<td id="cell1" class="cell"></td>
<td id="cell2" class="cell"></td>
<td id="cell3" class="cell"></td>
</tr>
<tr>
<td id="cell4" class="cell"></td>
<td id="cell5" class="cell"></td>
<td id="cell6" class="cell"></td>
</tr>
<tr>
<td id="cell7" class="cell"></td>
<td id="cell8" class="cell"></td>
<td id="cell9" class="cell"></td>
</tr>
</table>
</div>
</div>
<div>
Wanna play a human vs human game
<a href="2player/humanvshuman.html" color="black"> click here</a>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="index.js"></script>
</body>
</html>