-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (37 loc) · 1.21 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
<!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/style.css">
<link rel="stylesheet" href="style/audio.css">
<title>Tic-Tac-Toe</title>
</head>
<body>
<h1>Tic-Tac-Toe!</h1>
<p id = "result-field"></p>
<button id = "play-again">Play Again?</button>
<section class="game-board">
</section>
<div class="modal-wrapper">
<div class="game-menu">
<h2>Welcome!</h2>
<p id = "select-mode">Please select a game mode...</p>
<div class="buttons">
<button id = "p2p-button">Two Players</button>
<button id = "ai-button">
Player vs AI
<span>powered by<br> minimax algorithm</span>
</button>
</div>
</div>
</div>
<div class="music-control">
<button id = "stop-music">Stop Music</button>
<input type="range" name="" id="volume" min="0" max="1" step="0.2" value = "0.2">
</div>
<audio src="music.mp3"></audio>
<script src="js/game.js"></script>
<script src="js/main.js"></script>
</body>
</html>