-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (36 loc) · 1.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tic tac toe game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>tic tac toe game</h1>
<p id="statusText">Click start button to start the game.</p>
<button onclick="setPlayerButton()" id="setPlayerButton">o starts</button>
<button onclick="reactiveButton()" id="startStopButton">start</button>
<button onclick="resetButton()">reset</button>
<div id="gameBoard">
<table>
<tr>
<td id="cell1" onclick="handleClick(1)">1</td>
<td id="cell2" onclick="handleClick(2)">2</td>
<td id="cell3" onclick="handleClick(3)">3</td>
</tr>
<tr>
<td id="cell4" onclick="handleClick(4)">4</td>
<td id="cell5" onclick="handleClick(5)">5</td>
<td id="cell6" onclick="handleClick(6)">6</td>
</tr>
<tr>
<td id="cell7" onclick="handleClick(7)">7</td>
<td id="cell8" onclick="handleClick(8)">8</td>
<td id="cell9" onclick="handleClick(9)">9</td>
</tr>
</table>
</div>
<script src="script.js"></script>
</body>
</html>