-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
41 lines (33 loc) · 1.39 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>
<head>
<title>Tic Tac Toe</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Finger+Paint" rel="stylesheet">
<link rel="stylesheet" href="/Users/newowner/desktop/tic-tac-toe/assets/styles/style.css">
<script src="/Users/newowner/desktop/tic-tac-toe/assets/scripts/index.js"></script>
</head>
<body onload="startGame()">
<div id="title">Tic-Tac-Toe</div>
<table style="width:500px">
<tr>
<td class="box" id="square1" onclick='playerMove(this)'></td>
<td class="box" id="square2" onclick='playerMove(this)'></td>
<td class="box" id="square3" onclick='playerMove(this)'></td>
</tr>
<tr>
<td class="box" id="square4" onclick='playerMove(this)'></td>
<td class="box" id="square5" onclick='playerMove(this)'></td>
<td class="box" id="square6" onclick='playerMove(this)'></td>
</tr>
<tr>
<td class="box" id="square7" onclick='playerMove(this)'></td>
<td class="box" id="square8" onclick='playerMove(this)'></td>
<td class="box" id="square9" onclick='playerMove(this)'></td>
</tr>
</table>
<div id="text"> </div>
<button id="restart" onclick="startGame()">New Game</button>
<script src="/Users/newowner/desktop/tic-tac-toe/assets/scripts/index.js"></script>
</body>
</html>