-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (40 loc) · 1.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="styles.css">
<title>Tic Tac Toe</title>
</head>
<body>
<a href="https://github.com/DionPotkamp/TicTacToeLite" title="Go to the repo on GitHub">
<img src="GitHub.png" class="github" alt="Github link">
</a>
<h1>Tic Tac Toe</h1>
<table class="canvas" id="canvas">
<caption class="text" id="text"> </caption>
<tr>
<td class="" id="00" onclick="core(this.id)"> </td>
<td class="" id="01" onclick="core(this.id)"> </td>
<td class="" id="02" onclick="core(this.id)"> </td>
</tr>
<tr>
<td class="" id="10" onclick="core(this.id)"> </td>
<td class="" id="11" onclick="core(this.id)"> </td>
<td class="" id="12" onclick="core(this.id)"> </td>
</tr>
<tr>
<td class="" id="20" onclick="core(this.id)"> </td>
<td class="" id="21" onclick="core(this.id)"> </td>
<td class="" id="22" onclick="core(this.id)"> </td>
</tr>
</table>
<div class="stats">
Player X wins: <span id="Xwins">0</span><br>
Player O wins: <span id="Owins">0</span><br>
Players draw: <span id="draws">0</span><br>
</div>
<script src="game.js"></script>
</body>
</html>