-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (61 loc) · 2.13 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
<!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>
<header>
<h1 id="show-winner"></h1>
</header>
<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="dice-5.png" 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>
<button class="info">!</button>
</main>
<section class="info-modal hidden">
<div class="close-info">×</div>
<h5>How to play 👀</h5>
<p>
Welcome to Pig Game 🐽. You should play with your friend. <br />
In this game you roll the dice as much as you want and the scores <br />
from the dice add to your current score and you could hold it to the
<br />
main score whenever you want, But if the dice rolls to "one" <br />
your current score will be 0 and the player will change.
</p>
<br />
<h5>How to Win 🎉</h5>
<p>
If your scores reach 100 You will be the winnnneeeeer! 🥳 <br />
Have fun and enjoy the game! 🤗
</p>
</section>
<div class="overlay hidden"></div>
<footer>
<div class="copyr">Masen<sup>©</sup></div>
</footer>
<script src="script.js"></script>
</body>
</html>