-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
88 lines (87 loc) · 3.51 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
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
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<title>Tic Tac Toe</title>
</head>
<body>
<audio id="win">
<source src="sound.mp3"></source>
<source src="sound.ogg"></source>
</audio>
<div id="new-game" class="new-game">NEW GAME</div>
<div id="won-popup" class="won-popup">Player 1 won 🎉👏</div>
<div id="won-popup2" class="won-popup">Player 2 won 🎉👏</div>
<div id="won-popup3" class="won-popup">Draw😯😯</div>
<button id="replay" class="replay">reset</button>
<div style="display: flex; justify-content: center;">
<div class="main-big">
<h1 class="main-title">Let's play Tic Tac Toe</h1>
<div class="board">
<div class="header">
<div class="menu-button" style="display: none;">Home</div>
<div class="score-block" style="display: none;">
<div class="player-block player-block-1">
<div class="player-name">Player1</div>
<div class="score">0</div>
</div>
<div class="player-block player-block-2">
<div class="player-name">Player2</div>
<div class="score">0</div>
</div>
</div>
<div class="drop-downs">
<h3>Choose the players</h3>
<div class="drop-down">
<div class="drop-down-title">Player 1</div>
<select name="player-1" id="player-1">
<option value="0">Human 1</option>
<option value="1">AI Depth 1</option>
<option value="2">AI Depth 2</option>
<option value="3">AI Depth 3</option>
<option value="4">AI Depth 4</option>
<option value="5">AI Depth 5</option>
<option value="6">AI Depth 6</option>
<option value="7">AI Depth 7</option>
<option value="8">AI Depth 8</option>
<option value="9">AI Depth 9</option>
</select>
</div>
<div class="drop-down">
<div class="drop-down-title">Player 2</div>
<select name="player-2" id="player-2">
<option value="0">Human 2</option>
<option value="1">AI Depth 1</option>
<option value="2">AI Depth 2</option>
<option value="3">AI Depth 3</option>
<option value="4">AI Depth 4</option>
<option value="5">AI Depth 5</option>
<option value="6">AI Depth 6</option>
<option value="7">AI Depth 7</option>
<option value="8">AI Depth 8</option>
<option value="9">AI Depth 9</option>
</select>
</div>
</div>
</div>
<canvas id="confeti" width="300" height="300" class="active"></canvas>
<div class="screen">
<canvas
class="screen-canvas"
id="screen-canvas"
width="300"
height="300"
>
Your browser does not support the HTML5 canvas tag.
</canvas>
</div>
</div>
</div>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="./script.js"></script>
</html>