-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (50 loc) · 2.44 KB
/
index.html
File metadata and controls
55 lines (50 loc) · 2.44 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Word Guess Game</title>
<!-- We link our html to the Bootstrap CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<script type="text/javascript" src="assets/javascript/game.js"></script>
</head>
<body>
<div class="container"></div>
<div id="crystalls-collector"><h1>CrystalsCollector!</h1></div>
<div id="game-rules">
<p>You will be given a random number at the start of the game.</p>
<p>There are four crystals below. By clicking on a crystal you will add a specific amount of points to your total score.</p>
<p>You win the game by matching your total score to a random number, you lose the game if your score goes above the random number.</p>
<p>The value of each crystal is hidden from you until you click on it.</p>
<p>Each time when the game starts, the game will change the values of each crystal.</p>
</div>
<div class="row">
<div class="col-md-3" id="random-number">39</div>
<div class="col-md-1 score">Wins:</div>
<div class="col-md-1 score" id="wins">0</div>
<div class="col-md-1 score">Losses:</div>
<div class="col-md-1 score" id="losses">0</div>
</div>
<div class="row">
<div class="col-md-1 crystal-image" id="crystal0">
<img src="assets/images/hexagon.png"></img>
</div>
<div class="col-md-1 crystal-image" id="crystal1">
<img src="assets/images/diamond.png"></img>
</div>
<div class="col-md-1 crystal-image" id="crystal2">
<img src="assets/images/octagon.png"></img>
</div>
<div class="col-md-1 crystal-image" id="crystal3">
<img src="assets/images/square.png"></img>
</div>
</div>
<div class="row">
<div class="col-md-3">Your total score is:</div>
<div class="col-md-1" id="total-score">39</div>
</div>
</body>
</html>