-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
40 lines (40 loc) · 1.21 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
<!DOCTYPE HTML>
<html>
<head>
<title>Sandbox Tic-Tac-Toe</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="game.js"></script>
</head>
<body>
<h1>Tic-Tac-Toe</h1>
<div class="scoreboard">
<div class="player" style="float:left;">
<span id="score-1">0</span>
<br>
Player 1
</div>
<div class="player" style="float:right; text-align:right;">
<span id="score-2">0</span>
<br>
Player 2
</div>
</div>
<table class="tic-tac-toe">
<tr>
<td id="ul" onclick='play("ul");'> </td>
<td id="uc" onclick='play("uc");'> </td>
<td id="ur" onclick='play("ur");'> </td>
</tr>
<tr>
<td id="cl" onclick='play("cl");'> </td>
<td id="cc" onclick='play("cc");'> </td>
<td id="cr" onclick='play("cr");'> </td>
</tr>
<tr>
<td id="ll" onclick='play("ll");'> </td>
<td id="lc" onclick='play("lc");'> </td>
<td id="lr" onclick='play("lr");'> </td>
</tr>
</table>
</body>
</html>