-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (75 loc) · 2.79 KB
/
Copy pathindex.html
File metadata and controls
82 lines (75 loc) · 2.79 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" content="width=device-width, user-scalable=no initial-scale=1.0 maximum-scale=1.0 minimum-scale=1.0">
<title>TIC TAC TOE</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Piedra&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<span class="heading">Tic Tac Toe</span>
<div class="players">
<img src="images/robo.png" alt="ai" id="robot">
<img src="images/astronaut.png" alt="astronaut" id="astro">
</div>
<div class="players-2">
<img src="images/astronaut.png" alt="astronaut-1" id="astro1">
<img src="images/astro.png" alt="astronaut-2" id="astro2">
</div>
<div class="player-number">
<button type="button" class="player-no" id="one-p">1 Player</button>
<button type="button" class="player-no" id="two-p">2 Players</button>
</div>
<div class="starting-player">
<span>Starting player: </span>
<button class="start-p" id="ai-button">AI</button>
<button class="start-p" id="astro-button">Astronaut</button>
</div>
<div class="starting-2-player">
<span>Starting player: </span>
<button class="start-play" id="play-x">X</button>
<button class="start-play" id="play-o">O</button>
</div>
<div class="depth-button">
<span id="level">Level: </span>
<button type="button" class="depth" id="easy">easy</button>
<button type="button" class="depth" id="medium">medium</button>
<button type="button" class="depth" id="hard">hard</button>
</div>
<button type="button" class="newgame-1" id="one-player">New Game</button>
<button type="button" class="newgame-2" id="two-player">New Game</button>
<button type="button" name="button" class="suggestion">suggest a move</button>
<div class="playboard">
<table>
<tr>
<td class ="cell" id="0"> </td>
<td class ="cell" id="1"> </td>
<td class ="cell" id="2"> </td>
</tr>
<tr>
<td class ="cell" id="3"> </td>
<td class ="cell" id="4"> </td>
<td class ="cell" id="5"> </td>
</tr>
<tr>
<td class ="cell" id="6"> </td>
<td class ="cell" id="7"> </td>
<td class ="cell" id="8"> </td>
</tr>
</table>
<div class="endgame">
<div class="text">
</div>
<div class="box-2">
<div class="btn btn-two" >
<span>play again</span>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="one_player.js"></script>
<script type="text/javascript" src="two_player.js"></script>
</body>
</html>>