-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
41 lines (36 loc) · 1.09 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tic Tac Toe Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2 class='welcome'> Welcome to Tic Tac Toe Game , Hope You Enjoy It </h2>
<table>
<tr>
<td class="cell" id="0"></td>
<td class="cell" id="1"></td>
<td class="cell" id="2"></td>
</tr>
<tr>
<td class="cell" id="3"></td>
<td class="cell" id="4"></td>
<td class="cell" id="5"></td>
</tr>
<tr>
<td class="cell" id="6"></td>
<td class="cell" id="7"></td>
<td class="cell" id="8"></td>
</tr>
</table>
<div class="endgame">
<div class="text"></div>
</div><br><br>
<div class="buttons">
<button class='button' onclick="startGame({ai:false})">Play vs Random</button>
<button class='button' onclick="startGame({ai:true})">Play vs AI</button>
</div>
<script src="scriptai.js"></script><br>
</body>
</html>