-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.html
91 lines (86 loc) · 3.89 KB
/
rules.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
89
90
91
<!DOCTYPE html>
<head>
<title>Tic-Tac-Toe</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<link rel="stylesheet" href="dist/css/reset.css">
<link rel="stylesheet" href="dist/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Yeon+Sung&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=McLaren&display=swap" rel="stylesheet">
<style type="text/css">
body{
background-image: url(dist/assets/mars1.jpg);
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<div class="navbar-container">
<a id="button-audio" onclick="audioFunction()" class=" nav-button">
<p id="icon-music" class="icon-2"><i class="fa fa-music"></i></p>
</a>
<a href="./index.html" class="nav-button">
<p class="icon"><i class="fa fa-home"></i></p>
</a>
</div>
<div class="navbar-container-2">
<p class="nav-button icon-2" onclick="history.back();"><i class="fa fa-arrow-left" aria-hidden="true"></i></p>
</div>
<div class="content-container">
<!--<img class="pohon-1" src="dist/assets/pohon-1.png" />
<img class="pohon-2" src="dist/assets/pohon-2.png" />-->
<div class="content-container-2">
<div class="white-container-2">
<h1 class="subtitle">How To Play?</h1>
<hr class="line">
<div class="how-to-content">
<p><b>Play a simple game of Tic-Tac-Toe</b></p>
<br>
<p> <b>Astronaut vs Space Bot</b></p>
<p> Compete with Artificial Intelligence.</p>
<p><b>Who Starts?:</b> Select who starts playing the game.</p>
<p><b>Select your opponent:</b> Choose difficulty level of the game.</p>
<p>lieutenent: very easy</p>
<p>major: easy</p>
<p>colonel: medium</p>
<p>marshal: hard</p>
<br>
<p><b>Astronaut vs Astronaut</b></p>
<p>Compete with your friend, with AI for rescue.</p>
<p><b>Life Gaurd:</b> Let the computer play a turn, when you get stuck.</p>
<p>1, 2 and 3 Life Gaurds per player for 3x3, 4x4 and 5x5 respectively.</p>
<br>
<p><b>Select your grid size</b></p>
<p><b>3x3:</b> Player who draws <b>3 symbols</b> in a row, whether horizontally, vertically or diagonally wins</p>
<p><b>4x4:</b> Player who draws <b>4 symbols</b> in a row, whether horizontally, vertically or diagonally wins</p>
<p><b>5x5:</b> Player who draws <b>4 symbols</b> in a row, whether horizontally, vertically or diagonally wins</p>
</div>
</div>
</div>
<!--<img class="semak-1" src="dist/assets/semak-1.png" />
<img class="semak-2" src="dist/assets/semak-2.png" />-->
</div>
<audio id="myAudio" allow='autoplay' loop='loop' loop>
<source src="music/cublak.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
<script>
var x = document.getElementById("myAudio");
var checkAudio = true;
var property = document.getElementById("icon-music");
function audioFunction() {
if (checkAudio === true) {
property.style.color = "#F08732";
x.play();
checkAudio = false;
} else if (checkAudio === false) {
property.style.color = "#FFFFFF";
x.pause();
checkAudio = true;
}
}
</script>
</html>