-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtic.html
24 lines (24 loc) · 875 Bytes
/
tic.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
<!DOCTYPE html>
<html>
<head>
<title>Tic-Tac-Toe Game</title>
<link rel="stylesheet" type="text/css" href="tac.css">
</head>
<body>
<h1 class="text">Tic-Tac-Toe Game</h1>
<div class="tic-tac-toe-board" id="board">
<div class="cell" click="moveno(1)"></div>
<div class="cell" click="moveno(2)"></div>
<div class="cell" click="moveno(3)"></div>
<div class="cell" click="moveno(4)"></div>
<div class="cell" click="moveno(5)"></div>
<div class="cell" click="moveno(6)"></div>
<div class="cell" click="moveno(7)"></div>
<div class="cell" click="moveno(8)"></div>
<div class="cell" click="moveno(9)"></div>
</div>
<div id="status">Player X's turn</div>
<button id="restart" click="resetgame()">Restart Game</button>
<script src="toe.js"></script>
</body>
</html>