-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (44 loc) · 1.07 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>X & O</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="script2.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
</head>
<body onload="reset()">
<div class="container">
<table>
<tr>
<td id="0" onclick="playerGo(0)"></td>
<td id="1" onclick="playerGo(1)"></td>
<td id="2" onclick="playerGo(2)"></td>
</tr>
<tr>
<td id="3" onclick="playerGo(3)"></td>
<td id="4" onclick="playerGo(4)"></td>
<td id="5" onclick="playerGo(5)"></td>
</tr>
<tr>
<td id="6" onclick="playerGo(6)"></td>
<td id="7" onclick="playerGo(7)"></td>
<td id="8" onclick="playerGo(8)"></td>
</tr>
</table>
<button id="newgame" onClick="newGame()">New Game</button>
<div class="score">
<div class="playerscore">
<h1>Player</h1>
<h1>X</h1>
<h1 id="playertotal"></h1>
</div>
<div class="aiscore">
<h1>AI</h1>
<h1>O</h1>
<h1 id="aitotal"></h1>
</div>
</div>
</div>
</body>
</html>