-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (53 loc) · 2.34 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!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</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="top">
<!-- <img src="https://cdn.hugeicons.com/icons/cancel-01-stroke-rounded.svg" alt="cancel-01" width="25" height="25"
class="x" />
<img src="https://cdn.hugeicons.com/icons/circle-stroke-rounded.svg" alt="circle" width="25" height="25"
class="o" /> -->
<h1>GAMES By PJM</h1>
</div>
<nav>
<ul>
<li class="game-name">Tic-Tac-Toe</li>
<li></li>
</ul>
</nav>
<p id="fun-msg">"Step into the ultimate mind showdown where every move counts! Challenge your strategic skills and outsmart your opponent in the timeless game of Tic Tac Toe."</p>
<div class="info">
<p id="msg"></p>
<p id="score"></p>
</div>
<form class="name-form">
<input type="text" placeholder="Player1 Name" name="P1name" id="P1name">
<!-- <input type="file" placeholder="Player1's Pic" name="P1mark" id="P1mark"> -->
<input type="text" placeholder="Player2 Name" name="P2name" id="P2name">
<!-- <input type="file" placeholder="Player2's Pic" name="P2mark" id="P2mark"> -->
<button type="button" onclick="getRandomTurn();" id="strt-btn">START</button>
</form>
<p id="plStatus"></p>
<main class="board" id="board">
<div class="place" id="pos1" onclick="putMark(1)"></div>
<div class="place" id="pos2" onclick="putMark(2)"></div>
<div class="place" id="pos3" onclick="putMark(3)"></div>
<div class="place" id="pos4" onclick="putMark(4)"></div>
<div class="place" id="pos5" onclick="putMark(5)"></div>
<div class="place" id="pos6" onclick="putMark(6)"></div>
<div class="place" id="pos7" onclick="putMark(7)"></div>
<div class="place" id="pos8" onclick="putMark(8)"></div>
<div class="place" id="pos9" onclick="putMark(9)"></div>
<form class="game-btn">
<button type="button" onclick="playAgain();">Once More...</button>
<button type="submit">RESET</button>
</form>
</main>
<script src="script.js"></script>
</body>
</html>