-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (51 loc) · 2.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" />
<title>Pig Game</title>
</head>
<body>
<div class='modal modal--help'>
<button class="modal__btn modal__btn--help"> H E L P ❓</button>
<div class="modal__window modal__window--help modal--hidden-1">
<button class='modal__window--close'>❌</button>
<h1>- HELP DESK -</h1>
<p> 1. Roll Dice Button will roll the dice and whatever number pops up will be stored in your 'current'
value.</p>
<p> 2. Pressing Hold Button will store the total 'Current' value in your Total Score.</p>
<p> 3. If the value of dice is 1, the current value becomes 0 and the next player gets chance.</p>
<p> 4. Both players will get 10 chances. Whoever has the higest score by the end of the game will be the
winner.</p>
<p> 5. It's all about luck.</p>
</p>
</div>
<div class="modal__overlay--help modal--hidden-2"></div>
</div>
<main>
<section class="player player--0 player--active">
<h2 class="name" id="name--0">Player 1</h2>
<p class="score" id="score--0">43</p>
<div class="current">
<p class="current-label">Current</p>
<p class="current-score" id="current--0">0</p>
</div>
</section>
<section class="player player--1">
<h2 class="name" id="name--1">Player 2</h2>
<p class="score" id="score--1">24</p>
<div class="current">
<p class="current-label">Current</p>
<p class="current-score" id="current--1">0</p>
</div>
</section>
<img src="dice5.jpg" alt="Playing dice" class="dice" />
<button class="btn btn--new">🔄 New game</button>
<button class="btn btn--roll">🎲 Roll dice</button>
<button class="btn btn--hold">📥 Hold</button>
</main>
<script src="script.js"></script>
</body>
</html>