-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (40 loc) · 1.36 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
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/style.css" />
<title>Tic Tac Toe - using MiniMax Algorithm</title>
</head>
<body>
<h1>AI powered Tic Tac Toe</h1>
<br/>
<br/>
<h2>Using Minimax Algorithm </h2>
<h3 id="result">Result will be displayed here</h3>
<div class="board-container">
<table class="tic-tac-toe-table" cellspacing="0">
<tr>
<td id="00" onclick="clickMove(this)"></td>
<td id="01" onclick="clickMove(this)"></td>
<td id="02" onclick="clickMove(this)"></td>
</tr>
<tr>
<td id="10" onclick="clickMove(this)"></td>
<td id="11" onclick="clickMove(this)"></td>
<td id="12" onclick="clickMove(this)"></td>
</tr>
<tr>
<td id="20" onclick="clickMove(this)"></td>
<td id="21" onclick="clickMove(this)"></td>
<td id="22" onclick="clickMove(this)"></td>
</tr>
</table>
</div>
<br/>
<br/>
<div class="control-container">
<button type="button" id="btn-play" onclick="playCompFirst(this)">Play Computer First</button>
<button type="button" id="btn-restart" onclick="restartGame(this)"> Restart</button>
</div>
<script type="text/javascript" src="main.js" ></script>
</body>
</html>